- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How not to validate HTML5 input with required attribute
To avoid validation, use the formnovalidate attribute in HTML5. In the example, validation is disabled for the 2nd button −
Example
<!DOCTYPE html> <html> <head> <title>HTML formnovalidate attribute</title> </head> <body> <form action = "new.php" method = "get"> Rank <input type = "number" name = "rank" required><br> <input type = "submit" value = "Submit"><br> <input type = "submit" formnovalidate = "formnovalidate" value = "Submit with no validation"> </form> </body> </html>
Advertisements