jQuery Reset an Entire Form
Snippet
Instead of being asleep at 13:06 on 18 August 2019, kitt created this:
Reset an entire form, not just a field, to its original (onLoad) value.
You need the [0]
.
$('#form-id')[0].reset();
Add new comment