how to remove data from html input fields with js code example Example: js remove value input document.getElementById("YourID").value = '';