jQuery Reset an Entire Form
Snippet
kitt decided around 13:06 on 18 August 2019 to publish 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