Why am I using the novalidate attribute

I thank you for reading my questions and trying to resolve it. My question The HTML is based on the form tag. Why am I using the novalidate attribute ??? answer me! I really need your answers

+3


source to share


1 answer


Adding an attribute novalidate

to a form element prevents native validation on form elements (if applicable), allowing your JavaScript accessibility to all validations



The novalidate attribute prevents forms from performing logic validation on form submission. In other words, it always allows the form submission process to go through no matter what the results of the validation logic would normally be. But why would you want to do something like that? Well, one of the main uses for this is to give the user the ability to save the form so they can continue working without first checking all the records.

So, if there is a user on your website for example, fill out a form and the user wants to save their progress, you can turn off the form validation laws and let them submit the form and continue later without forcing them to validate everything first.

There are actually two attributes that affect behavior. If you want to use novalidate directly on the form tag, you can use the novalidate atrribute right on the form itself. You can also do this on each stem control.

-1


source







All Articles