Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex on input

<form>
 <label for="username">Username <i>(letters and numbers only, no  punctuation or special characters)</i></label><br>
 <input name="username" id="username" pattern="[A-Za-z0-9]+">
</form>
Source by html.com #
 
PREVIOUS NEXT
Tagged: #regex #input
ADD COMMENT
Topic
Name
4+1 =