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