javascript reset input value code example
Example 1: jquery clear form values
$(".reset").click(function() {
$(this).closest('form').find("input[type=text], textarea").val("");
});
Example 2: how to reset input field in javascript
document.querySelector('#counter').value = '';
Example 3: js remove value input
document.getElementById("YourID").value = '';