Im trying to limit to X number the characters in a input (type of number). ive tried a lot of options and none seems to work. I dont want to use the option tel as it needs t
Note: charCode is non-standard and deprecated, whereas keyCode is simply deprecated.
Check this code
JavaScript