Answers for "how to clear form data in jquery"

11

form reset jquery

$('#form_id').trigger("reset");
Posted by: Guest on June-26-2020
1

form reset jquery

$('#form').get(0).reset()
Posted by: Guest on April-30-2020
2

jquery clear form values

$(".reset").click(function() {
    $(this).closest('form').find("input[type=text], textarea").val("");
});
Posted by: Guest on April-03-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language