I need to replace some characters with others in an input on the fly and I thought that with javascript I can solve it.
The theme is the following: I have an input that reads EAN13 codes and I have it ready so that when I insert the numbers I validate it.
The fact is that now there is a bar code reading gun and when you click on the input and scan a code instead of writing numbers write the symbols that are in those numbers for example in the 6 put an & in 5 a% and so on with everyone. Then I need to write the javascript symbols to change the number assigned to that key to validate it and that humans understand it.
Can this be done with javascript? What would the syntax be?