Blank out a form with jQuery

$(':input','#myform')
 
.not(':button, :submit, :reset, :hidden')
 
.val('')
 
.removeAttr('checked')
 
.removeAttr('selected');

4 Comments

Comments have been disabled for this content.