input formnovalidate Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:input

Description

The novalidate attribute is a boolean attribute to set if the <input> element should not be validated when submitted.

The formnovalidate attribute overrides the novalidate attribute of the <form> element.

The formnovalidate attribute can be used with type="submit".

Syntax

The formnovalidate attribute is a boolean attribute, and can be set in the following ways:

  • <input formnovalidate>
  • <input formnovalidate="formnovalidate">
  • <input formnovalidate="">

A form with two submit buttons (with and without validation):

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<form action="/action_page.php">
  E-mail: <input type="email" name="userid"><br>
  <input type="submit" value="Submit"><br>
  <input type="submit" formnovalidate="formnovalidate" value="Submit without validation">
</form><!--from   www. j a  v a 2s .  com-->

</body>
</html>

Related Tutorials