0
How to make ? if me press the button (cal) , (input 2) is automatically filled with data ( input 1 ) 🙏
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <input type="number" placeholder="input 1"/> <input type="number" placeholder="input 2"/> <button> cal</button> </body> </html>
4 Réponses
+ 3
Check code to see how I make this, I placed comments so you can understand steps.
https://code.sololearn.com/WQ5up2u0I9EP/?ref=app
+ 1
Write a function that gets the value from 1 and sets it to 2 and attach it as click event to the button.
+ 1
Thanks PanicS the code is working 🙏👌
+ 1
Thanks for advice Lisa 🙏