Ali Sağırvelioğulları Ali Sağırvelioğulları - 7 months ago 11
Javascript Question

using jquery mask plugin with on() event

Is it possible to use mask function with "on()" event?

my jquery code for masking:

$("#ktel,#kmob").mask("(999) 999-9999");


what i need is something like this:

$("#ktel,#kmob").on("mask","(999) 999-9999");

Answer
function bindMask(c){
  $(c).mask("(999) 999-9999");
}

It is impossible , you should call bind action every time

Comments