/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(document).ready(function() { $("input[type='text']").focus(function() { if($(this).val() == 'here your text') $(this).val(""); }); $("input[type='text']").blur(function() { if($(this).val() == "") $(this).val("here your text"); }); });