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