I have a input box defined in HTML.
The limit on number of characters allowed in the box is 10.
I only want to allow the characters A-Z and 0-9 in the box.
I want to define the
pattern for that.
[A-Z,0-9] is not working. It is behaving as if it is defined for only the first character. e.g. ! is not allowed. But 2@ is allowed.
[A-Z,0-9]* is also not working.
I don't want to do [A-Z,0-9][A-Z,0-9][A-Z,0-9][A-Z,0-9]..... 10 times to define pattern for each of the 10 characters.
Please help.