I have in console(Ctrl+J) chorme as error:
Uncaught TypeError: Cannot call method ‘reverse’ of null
In following code:
///normal number formatting/////////////////////////////////////////////////////////////////////////////////////////
$(document).delegate('input.numeric:text', 'keyup', function () {
$val = $(this).val().match(/[0-9]/g).reverse().join("").match(/[0-9]{1,3}/g).join(",").match(/./g).reverse().join("");
$(this).val($val)
});
How fix this error?
The error says that this part returns
null:The value contains no numbers. I suggest you validate: