pattern of input in html to check atleast 3 characters in form validation code example
Example: html input only letters
<!--To stop input from accepting numbers-->
<input onkeypress="return /[a-z]/i.test(event.key)" >
<!--To stop input from accepting numbers-->
<input onkeypress="return /[a-z]/i.test(event.key)" >