/ Published in: jQuery

No need to create a seperate function for this one. Just one line to clear the default value on click and leave the value when it has been altered.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<input name="email_address" value="Email address" onfocus="if($(this).val() == 'Email address') { $(this).val('')}" type="text">
URL: http://www.dyteq.com/2ndquest/?p=171
Comments
