jQuery Reset an Entire Form
Snippet
Yeah, kitt finished writing this 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