How to disable validation of HTML5 form elements?

Spread the love

Sometimes, we want to disable validation of HTML5 form elements.

In this article, we’ll look at how to disable validation of HTML5 form elements.

How to disable validation of HTML5 form elements?

To disable validation of HTML5 form elements, we add the novalidate attribute.

For instance, we write

<form method="post" action="/foo" novalidate>...</form>

to add the novalidate attribute to the form element to disable HTML form validation.

Conclusion

To disable validation of HTML5 form elements, we add the novalidate attribute.

Leave a Reply

Your email address will not be published.