views:

57

answers:

1

Currently I have:

$("#your_email").val(this.defaultValue;)

I want to be cycling through all form elements and resetting them to their default value

+4  A: 

you don't need jQuery for this, just get the form dom element and call reset() on it.

Or, fetch with jQuery like:

$("#myFormId")[0].reset();
brad
cheers, thought there would be something obvious, don't know why I missed it.
kalpaitch