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