I want to clear all input and textarea fields in a form. It works like the following when using an input button with the reset
class:
$(\".reset
Some of you were complaining that radios and such are cleared of default "checked" status... All you have to do is add the :radio, :checkbox selectors to the .not and the problem is solved.
If you can't get all the other reset functions to work, this one will.
Adapted from ngen's answer
function form_reset(formID){
$(':input','#'+formID)
.not(':button',':submit',':reset',':hidden',':radio',':checkbox')
.val('');
}