What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-26 10:23:07
jquery empty all forms
$('#formId')[0].reset(); OR // For jQuery 1.6+: $(':input','#formId') .not(':button, :submit, :reset, :hidden') .val('') .prop('checked', false) .prop('selected', false); // For jQuery < 1.6: $(':input','#formId') .not(':button, :submit, :r... Add solution -
Javascript 2021-09-12 19:08:03
set form empty jquery
$('#formId')[0].reset(); OR // For jQuery 1.6+: $(':input','#formId') .not(':button, :submit, :reset, :hidden') .val('') .prop('checked', false) .prop('selected', false); // For jQuery < 1.6: $(':input','#formId') .not(':button, :submit, :r... Add solution