Input Submit formNoValidate Property - Set the formNoValidate property: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Submit

Description

Input Submit formNoValidate Property - Set the formNoValidate property:

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials