Answers for "Validating Form Inputs with Patter Attribute"

0

Validating Form Inputs with Patter Attribute

<form action="/action_page.php">
  <label for="pwd">Password:</label>
  
    <input type="password" id="pwd" name="pwd"
  pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}"
  title="Must contain at least one  number and one uppercase and lowercase letter, and at least 8 or more characters">
  <input type="submit">

 </form>
Posted by: Guest on August-19-2021

Browse Popular Code Answers by Language