I want the user to fill in the form:input with phone number. I want it to be in the format of +00 - 000 - 000 - 000. What I need to achieve is: 1. Force the user to insert only numbers in the input 2. After inserting proper number of digits (according to the pattern I wrote above) I would like to add automatically the dash so the user would only type the numbers.
Is there a way to achieve it in form:input without using any javascripts or rather should I wrote the script?
pattern: +##-###-###-###
Aucun commentaire:
Enregistrer un commentaire