What is the used of Novalidate attribute in Form Tag.

 Posted by vishalneeraj-24503 on 12/1/2014 | Category: ASP.NET Interview questions | Views: 542 | Points: 40
Answer:

Novalidate attribute is used in Form tag definition and is used to send the information which will not validate any form field whether they are right or wrong.In short,we can say that,NoValidate attribute specifies that the form data should not be validated and then processed.
For Example:-
<form action = "info.aspx" novalidate>

<input type ="email" name = "email" autocomplete = "off">
<input type = "submit" name = "submit" value = "Submit">
</form>

In the above code,if we will give wrong or incorrect email,and click on Submit button,then it will not validate Email and process.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response