I’m using the funcion clearForms to reset my form after submit:
<script>
function clearForms()
{
var i;
for (i = 0; (i < document.forms.length); i++) {
document.forms[i].reset();
}
}
</script>
And setting the body to:
<body onLoad="clearForms()" onUnload="clearForms()">
But this method is from 2006 (http://www.boutell.com/newfaq/creating/clearform.html). Is there a way to do it with jquery?
Thanks!
Is this what you are trying to achieve?