Could someone help me with restrictions for input text?
<input type = text size = 18 name = part_numb value = '' pattern = '([A-NP-Z0-9 -]). {0,50}' id = 'part_numb' required>
In this case, it's not working.
My restrictions are:
The value can't content letter "O", auto-replacement with number "0"
The value can't content small letters, only Capital. (auto-replacement)
The value can't content special symbols except "-" but the value can't start or finish with "-" (auto-removal)
The value can't content free spaces. (auto-removal)
5. This input is required.
- The symbols have to be "A-N", "P-Z", "0-9", "-"
I thinks that have to use "onChange", but I am not sure.
Please excuse me if this topic is not for here.
Thanks in advance.