Posted By

jelontok on 01/04/11


Tagged

clear forms jquery text


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

onwardonward
fvera
virendrakryadav


jquery - clear text search


 / Published in: jQuery
 

simple jquery code to clear form fields

  1. // clear input field
  2. $("input").focus(function() {
  3. $("input").attr("value","");
  4. });

Report this snippet  

You need to login to post a comment.