Clear form fields using jquery
by satheeshkumar[ Edit ] 2012-07-09 14:20:09
The following code is used to clear all the fields in form including textbox,textarea,radiobutton and select box expect button,
$(':input','#formname').not(':button, :submit, :reset, :hidden').val('').removeAttr('checked').removeAttr('selected');