reset form function not working javascript code example Example: reset form function javascript document.getElementById("form").reset();