Javascript examples for DOM HTML Element:Input Submit
Input Submit disabled Property - Find out if a Submit button is disabled or not:
<!DOCTYPE html> <html> <body> <input type="submit" id="mySubmit"> <button onclick="myFunction()">Test</button> <script> function myFunction() {//from w w w .j ava2 s . c o m document.getElementById("mySubmit").disabled = true; } </script> </body> </html>