+ 5
How to use the pattern attribute in input tag to allow the username with particular Patterns.Im not getting it.Can anyone do it?
Just to take input from the user and notifying whether he is allowed r not based on the pattern of user name he is entered. And here the pattern is '% SL'.
1 Respuesta
+ 4
The pattern attribute specifies a regular expression that the <input> element's value is checked against. (read more in the following link)
[HTML input pattern attribute]
https://www.w3schools.com/tags/att_input_pattern.asp
[HTML pattern attribute]
https://www.w3schools.com/tags/att_pattern.asp
[JavaScript RegExp object]
https://www.w3schools.com/js/js_regexp.asp
Hth, cmiiw