jQuery Reset an Entire Form
Snippet
Written with a loving hand by kitt some time around 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