Skip to content
Advertisement

typing in two inputs using same keypad

i have an HTML and javasscript Keypad to typing Numbers into input using keypad im trying to add more inputs this keypad working good with only one input

How i make my code javascript work with second input too when i focused on it the keypad should be able to typing in second input using same keypad?

JavaScript
JavaScript

Advertisement

Answer

I would suggest storing the active input in a variable when one of them is focused:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement