jquery upgrade breaking existing code
- by Victor
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?