Preventing validation on HTML5 text box

JavascriptWeb DevelopmentFront End Scripts

To avoid validation, use the formnovalidate attribute in HTML5. In the example, validation is disabled for the second button:

<!DOCTYPE html>
      <title>HTML formnovalidate attribute</title>
      <form action = "new.php" method = "get">
         Rank <input type = "number" name = "rank"><br>
         <input type = "submit" value = "Submit"><br>
         <input type = "submit" formnovalidate = "formnovalidate" value = "Submit with no validation">
Updated on 30-Jan-2020 07:05:42