Disabling Input Validation
You can disable the validation by applying the form's novalidate attribute, or the formnovalidate attribute to the types of the button and input elements.
<!DOCTYPE HTML>
<html>
<head>
<title>Example</title>
</head>
<body>
<form method="post" action="http://yourServer/form">
<input type="hidden" name="recordID" value="1234" />
<p>
<label for="name"> Name: <input type="text" id="name"
name="name" pattern="^.* .*$" />
</label>
</p>
<p>
<label for="password"> Password: <input type="password"
placeholder="Min 6 characters" id="password" name="password" />
</label>
</p>
<p>
<label for="email"> Email: <input type="email"
placeholder="user@mydomain.com" required pattern=".*@mydomain.com$"
id="email" name="email" />
</label>
</p>
<input type="submit" value="Submit" /> <input type="submit"
value="Save" formnovalidate />
</form>
</body>
</html>
Home
HTML CSS Book
HTML
HTML CSS Book
HTML
Input Validation:
- Using Input Validation
- Ensuring the User Provides a Value
- Ensuring a Value Is Within Bounds
- Ensuring a Value Matches a Pattern
- Ensuring a Value Is an E-mail Address or URL
- Disabling Input Validation
Related: