Answer the question
In order to leave comments, you need to log in
How to combine regex validation and inputmask field?
View mask code
$('#input').inputmask({
mask: '8 ( 999 ) 999 - 99 - 99',
showMaskOnHover: false,
});
function validateNum(num) {
var reg = /^[0-9]{20}$/;
return reg.test(num);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question