/ Published in: jQuery
Expand |
Embed | Plain Text
$(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"); }); });
You need to login to post a comment.
