Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#search-field').focus(function(){ if($(this).val() == this.defaultValue) $(this).val(''); });
- $('#search-field').blur(function(){ if($(this).val() == '') $(this).val(this.defaultValue); });
Add Comment
Please, Sign In to add comment