Answers for "input html pattern"

0

html input only letters

<!--To stop input from accepting numbers-->
<input onkeypress="return /[a-z]/i.test(event.key)" >
Posted by: Guest on December-01-2020
-1

html5 input pattern name

echo '<input type="text" maxlength="32" name="first_name" pattern="[A-Za-z]{1,32}" value="'.$_SESSION['user_first_name'].'" required>';
Posted by: Guest on November-29-2020

Browse Popular Code Answers by Language