Open dvelikiy opened 8 years ago
Also mask doesn't seem to apply at all when input type="email" instead of "text".
You should pass true as value and not the string "true" for jitMasking
Op di 10 mei 2016 om 09:58 schreef Dmitry Velikiy <notifications@github.com
:
Also mask doesn't seem to apply at all when input type="email" instead of "text".
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/RobinHerbots/jquery.inputmask/issues/1270#issuecomment-218085189
@RobinHerbots It makes no difference: oncomplete/onincomplete doesn't work when I set jitMasking: true
@codenotfound ,
Ow sorry , I didn't test that. I will check that.
Hi, I'm just trying to have my mask applied silently without showing placeholder. Tried emptying placeholder and enabling jitMasking but to no avail. When I set jitMasking to true, "oncomplete" and "onincomplete" don't work. Mask works fine otherwise. Can you please help with that?
My code:
$(".js-email").inputmask("email",
{
"onincomplete": function(){
$(this).parent().addClass("has-error");
},
"oncomplete": function(){
$(this).parent().removeClass("has-error");
}
,autoUnmask: "true"
,jitMasking: "true",
placeholder: ""
});