Posted By

vigoncas on 09/23/11


Tagged

form clear jquery reset


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

spee66


Reset/clear a form


 / Published in: jQuery
 

  1. // Change #myform by your form id
  2.  
  3. $(':input','#myform')
  4. .not(':button, :submit, :reset, :hidden')
  5. .val('')
  6. .removeAttr('checked')
  7. .removeAttr('selected');

Report this snippet  

You need to login to post a comment.