vendredi 29 juillet 2016
jQuery bvalidator Phone Number Validation
I'm using bValidator for form validation. Form fields are generated dynamically from a json file and loaded into an angularJS view on the fly.
I'm trying to validate a phone number input field using regex, I don't want user's to enter 9999999999 as phone number.Below is the regex expression
data-bvalidator="number,required,regex[!(9999999999)]"
I also tried
data-bvalidator="number,required,regex[^(9999999999)]"
and many others. But not getting the desired result
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire