how to set empty form fields in javascript code example Example: js remove value input document.getElementById("YourID").value = '';