Dear sir,
How will create when user mouse enter a text box then text box clear using JavaScript
Hi rajeesh,
Check this example.
HTML
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <script type="text/javascript"> function Erase(ele) { ele.value = ""; } </script> <input type="text" id="txtValue" onmouseenter="Erase(this)" value="Welcome to AspForums." style="width: 100%;" /> </body> </html>
Demo
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.