+ 1
How can I make a button that adds characters to a n input?
like a "number padlock" with buttons 0-9 and when buttons are pressed, they are displayed on an input field? something with a template of this: https://code.sololearn.com/WS19Rax15O7o/?ref=app
4 Réponses
+ 2
You can (and you have to) do it with a bit of Javascript. For example, you could create a function called everytime a button is pressed. This function will write the pressed number in the field.
+ 2
I was trying really hard to figure it out myself but I would never have guessed that. thanks so much!
+ 1
can you show example? I get error messages like "cannot set property "onClick" of null
0
「HAPPY TO HELP」 Because you are always so awesome maybe you can take a look?