Javascript examples for DOM HTML Element:Input Reset
Input Reset disabled Property - Disable and enable a reset button:
<!DOCTYPE html> <html> <body> <input type="reset" id="myReset"><br> <button onclick="disable()">Disable Reset Button</button> <button onclick="enable()">Enable Reset Button</button> <script> function disable() {/*from w ww. ja v a 2s. com*/ document.getElementById("myReset").disabled = true; } function enable() { document.getElementById("myReset").disabled = false; } </script> </body> </html>