Remove form input defaults on click
Hello, the script is placed here: http://blake-walters.com/2008/07/rem...faults-on.html
The problem is, i don't know how to include it on my site, to make it work, im really noob at js. Please tell me what i have to add to make it work.
Code:
$('input, textarea').each(function() {
$(this).focus(function() {
if($(this).val() == this.defaultValue)
$(this).val("");
});
$(this).blur(function() {
if($(this).val() == "") $(this).val(this.defaultValue);
});
});
Thank you.