event.charCode >= 48 && event.charCode <= 57 charCode is deprecated now, does anyone knows how to replace this