jquery upgrade breaking existing code

Posted by Victor on Stack Overflow See other posts from Stack Overflow or by Victor
Published on 2012-11-29T16:20:11Z Indexed on 2012/11/29 23:06 UTC
Read the original article Hit count: 229

Filed under:

I have a following event handler which worked in jquery 1.3.2 but stopped working when we upgraded to 1.8.2, still fired but doesn't do anything

 $('input.maskedInput').focus(function () {

        $(this).mask("999-999-9999");
    }).blur(function () {

        $(this).unmask();
        var numbers = $(this).val().replace(/-/g, '').replace(/_/g, '');
        $(this).val(numbers.toString());
    });

What could be a problem?

© Stack Overflow or respective owner

Related posts about jQuery