Ali Sağırvelioğulları Ali Sağırvelioğulları - 1 year ago 128
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 Source
function bindMask(c){
  $(c).mask("(999) 999-9999");

It is impossible , you should call bind action every time

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download