javascript - Why should I use novalidate rather than deleting validation tags? -
it's easy find answers novalidate attribute in html5.
in angular.js we teached should use it, because angular.js should validation.
why not delete validation tags instead?
<form novalidate> <input type=number name=num step=5> </form> here disable build in step=5 order novalidate.
why should write both when don't want have that?
isn't better approach?:
<form> <input type=number name=num> </form> so why use novalidation field @ all?
if don't add attribute. there 2 validation 1 browser angular
refer below url html5 validation do. http://www.the-art-of-web.com/html/html5-form-validation/
novalidate: specifies element represents form not meant validated browser during form submission.
there 1 more attribute called ** example: below html form without novalidate attribute.
<form action="demo_form.php"> e-mail: <input type="email" name="user_email" required="true"> <input type="submit"> </form> if submit below form, below browser inbuilt feature validate field.
note: novalidate attribute of form tag not supported in internet explorer 9 , earlier versions, or in safari.
reference url:
https://www.w3.org/tr/html-markup/form.html#form.attrs.novalidate
https://developer.mozilla.org/en-us/docs/web/html/element/button#attr-formnovalidate
http://www.w3schools.com/tags/att_form_novalidate.asp

Comments
Post a Comment