Posted By

yhs on 12/15/10


form clear input focus

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Simply clear the default input value on first :focus

 / Published in: jQuery

  1. $("input[type='password'], input[type='text'], textarea").each(function(){
  2. $(this).one('focus',function(){
  3. $(this).val("");
  4. });
  5. });

Report this snippet  

You need to login to post a comment.