Click here to Skip to main content
15,915,603 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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.
Posted

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900