Answers for "Reset form fields"

2

jquery clear form values

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

Reset all form data

document.getElementById("myForm").reset();
Posted by: Guest on September-06-2021

Browse Popular Code Answers by Language