js reset input code example
Example 1: how to reset input field in javascript
document.querySelector('#counter').value = '';
Example 2: js remove value input
document.getElementById("YourID").value = '';
document.querySelector('#counter').value = '';
document.getElementById("YourID").value = '';