reset input text's value javascri[pt code example Example: how to reset input field in javascript document.querySelector('#counter').value = '';