I have a form with a standard reset button coded thusly:
Trouble i
I'm using Paolo Bergantino solution which is great but with few tweaks... Specifically to work with the form name instead an id.
For example:
function jqResetForm(form){
$(':input','form[name='+form+']')
.not(':button, :submit, :reset, :hidden')
.val('')
.removeAttr('checked')
.removeAttr('selected');
}
Now when I want to use it a could do
As you see, this work with any form, and because I'm using a css style to create the button the page will not refresh when clicked. Once again thanks Paolo for your input. The only problem is if I have defaults values in the form.