Clear form fields using jquery

by satheeshkumar 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');

Tagged in:

1042
like
0
dislike
0
mail
flag

You must LOGIN to add comments