<form>
<input type=number name=num min=1 max=10>
<input type=submit formnovalidate value=Save>
<input type=submit value=Submit>
</form>
Live Demo
The Low Down
The formnovalidate attribute is for submit buttons to force a form be behave like
a form with the novalidate attribute.
-
This could be used in a situation where a form needed to be "saved" but not "submitted" so invalid data is OK for now. Example: Doing your taxes online, a number field could have the value "ask Diane in accounting about this" as a note-to-self.
- IE 9 accepts the attribute but it doesn't actually work (because it doesn't have form validation anyway). IE 10 PP2, which does have form validation, this attribute does work on (although not mentioned by their docs).
|