Without knowing how you are setup, this is normally done to deactivate HTML5 form validation.
Nothing to do with jQuery validation that is being done normally.
HTML5 inputs will normally prevent the submit from happening if it validates that it's not the proper format. This attribute prevent this behavior from happening.
Your statement is not entirely correct. Yes, this is standard HTML5 notation, however it is being generated by the MVC framework. In my situation I want to use the HTML5 validation and need to remove this attribute. Can anyone tell me how to instruct
MVC not in emit this?
byrdt0cm
Member
142 Points
69 Posts
MVC4 novalidate appearing in form novalidate="novalidate"
Dec 09, 2011 01:18 PM|LINK
When veiwing the generated html in MVC4 I see this:
In my MVC3 form I see this.
Why is there a change and how will this effect validation?
Arch4ngel
Member
175 Points
31 Posts
ASPInsiders
MVP
Re: MVC4 novalidate appearing in form novalidate="novalidate"
Mar 07, 2012 02:41 PM|LINK
Without knowing how you are setup, this is normally done to deactivate HTML5 form validation.
Nothing to do with jQuery validation that is being done normally.
HTML5 inputs will normally prevent the submit from happening if it validates that it's not the proper format. This attribute prevent this behavior from happening.
validation
madskristens...
Member
108 Points
14 Posts
Re: MVC4 novalidate appearing in form novalidate="novalidate"
Mar 18, 2012 03:40 PM|LINK
The novalidate attribute is part of the HTML 5 standard specification and isn't tied to MVC in any way. See here http://www.w3schools.com/html5/att_form_novalidate.asp
markjcollins
Member
2 Points
1 Post
Re: MVC4 novalidate appearing in form novalidate="novalidate"
Apr 24, 2012 12:35 PM|LINK
Your statement is not entirely correct. Yes, this is standard HTML5 notation, however it is being generated by the MVC framework. In my situation I want to use the HTML5 validation and need to remove this attribute. Can anyone tell me how to instruct MVC not in emit this?