Answer the question
In order to leave comments, you need to log in
Why is the number not edited in the inputmask when an invalid number is entered?
There is an example that uses an inputmask. I can’t edit the number if it’s not valid
. I understand that the problem lies here
$('input[name="leyka_donor_phone"]').on("focus click countrychange", function(e, countryData) {
var pl = $(this).attr('placeholder') + '';
var res = pl.replace( /X/g ,'9');
if(res != 'undefined'){
$(this).inputmask(res, {placeholder: "X", clearMaskOnLostFocus: true});
}
});
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