/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var field = $('input'); field.focus(function(){ if(field.val()==='Your Name') field.val('') }).blur(function(){ if(field.val()==='') field.val('Your Name') })