Javascript examples for DOM HTML Element:Input Submit
Input Submit formNoValidate Property - Set the formNoValidate property:
<!DOCTYPE html> <html> <body> <form action="#" method="get"> E-mail: <input type="email" name="userid"><br> <input type="submit" id="mySubmit" value="Submit" formnovalidate> </form>/*from w ww .java 2s. c o m*/ <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() { document.getElementById("mySubmit").formNoValidate = false; document.getElementById("demo").innerHTML = "changed"; } </script> </body> </html>