jQuery Reset Form by filtering elements


/ Published in: jQuery
Save to your folder(s)

http://stackoverflow.com/questions/680241/reset-form-with-jquery


Copy this code and paste it in your HTML
  1. $(':input','#myform')
  2. .not(':button, :submit, :reset, :hidden')
  3. .val('')
  4. .removeAttr('checked')
  5. .removeAttr('selected');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.