reset input text field javascript code example Example: js remove value input document.getElementById("YourID").value = '';