We using jquery inputmask from here http://digitalbush.com/projects/masked-input-plugin and a code snippet that sets and unsets the mask when necessary:
This worked fine with jquery 1.3.2 but stopped working when upgraded to 1.8.2. No errors just unsetting does not occur any longer. What needs to be adjusted?
Yes, your sample works fine but I am not sure how is it related to my problem. I am trying to remove dashes from the phone and unset the mask once the user leaves the field. That doesn't happen any more once we migrated to 1.8.2
VictorNow
Member
21 Points
32 Posts
jquery plugin breaking change
Dec 05, 2012 09:16 PM|LINK
We using jquery inputmask from here http://digitalbush.com/projects/masked-input-plugin and a code snippet that sets and unsets the mask when necessary:
$('input.maskedInput').focus(function () { $(this).mask("999-999-9999"); }).blur(function () { var numbers = $(this).val().replace(/-/g, '').replace(/_/g, ''); $(this).val(numbers.toString()).unmask(); });This worked fine with jquery 1.3.2 but stopped working when upgraded to 1.8.2. No errors just unsetting does not occur any longer. What needs to be adjusted?
asteranup
All-Star
30184 Points
4906 Posts
Re: jquery plugin breaking change
Dec 06, 2012 02:27 AM|LINK
Hi,
Its working fine without any issue-
http://jsfiddle.net/asteranup/aHMN4/
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog
VictorNow
Member
21 Points
32 Posts
Re: jquery plugin breaking change
Dec 06, 2012 03:51 AM|LINK
Hi, thanks for the reply.
Yes, your sample works fine but I am not sure how is it related to my problem. I am trying to remove dashes from the phone and unset the mask once the user leaves the field. That doesn't happen any more once we migrated to 1.8.2