在JQuery的Mouse Over事件上,CustomEditor上的文本有多清晰 [英] How clear text on CustomEditor on Mouse Over event of JQuery

查看:62
本文介绍了在JQuery的Mouse Over事件上,CustomEditor上的文本有多清晰的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在jquery上很穷,所以如果编辑器包含特定的文本,如果编辑器有你的文字在这里这样的文字,那么帮助如何删除html编辑器上的文本然后编辑器应该清除鼠标上的文字过度事件。下面的代码有示例请给jquery结构删除文本。





< iframe id =PopupControl_htmlTextEditor_ctl02_ctl00name =PopupControl_htmlTextEditor_ctl02_ctl00>

< html>

< body marginwidth =0 marginheight =0>

你的文字

< / body>

< / html>

< / iframe>





谢谢。

解决方案

请试试是如下所示。



注意:这是一个示例。根据文本框的ID更正。



HTML

< input type =textname =fnameid =fnamevalue = sampath> 





JS

 


(#fname).mouseover(function(){


(this).val('');
}) ;





现场演示: JsFiddle


Hi
I am poor on jquery so help how to remove text on html Editor if editor contains particular text i.e if editor has text like "Your text here" then editor should clear that text on mouse over event. Below code has sample please give jquery structure to remove text.


<iframe id="PopupControl_htmlTextEditor_ctl02_ctl00" name="PopupControl_htmlTextEditor_ctl02_ctl00">
<html>
<body marginwidth="0" marginheight="0">
Your Text Here
</body>
</html>
</iframe>



Thanks.

解决方案

Please try is as below.

Note:This is a sample.Correct it according to your textbox's id.

HTML

<input type="text" name="fname" id="fname" value="sampath">



JS


( "#fname" ).mouseover(function() {


(this).val(''); });



LIVE DEMO : JsFiddle


这篇关于在JQuery的Mouse Over事件上,CustomEditor上的文本有多清晰的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆