Currently I have:
$("#your_email").val(this.defaultValue;)
I want to be cycling through all form elements and resetting them to their default value
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();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With