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: 1. The input can't content been replaced with free spaces, small letters, letter "O" have been replaced from number 0. 2. The input cannot have special symbols, except "-" but it cannot start or finish with "-".
The code could be and something on JS. This input is required.
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire