Javascript examples for DOM HTML Element:Button
Button formNoValidate Property - Set the formNoValidate property:
<!DOCTYPE html> <html> <body> <form action="#" method="get"> E-mail: <input type="email" name="userid"><br> <button id="myBtn" type="submit" formnovalidate>Submit</button> </form>//w ww . j a v a 2s .co m <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() { document.getElementById("myBtn").formNoValidate = false; document.getElementById("demo").innerHTML = "set"; } </script> </body> </html>