Answer the question
In order to leave comments, you need to log in
Phone mask regular?
There is a mask for phone input:
'formData.phoneNumber': function (value) {
return Validator.value(value).required().regex(/\+\d{6,20}/);
}
Answer the question
In order to leave comments, you need to log in
Try it differently
function (value) {
value = value.replace(/\s/g,"") ///<== Удаляет все пробелы переносы и тд
return Validator.value(value).required().regex(/\+\d{6,20}/);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question