I’m having difficulty creating a simple calculator.
How do you set it so when you click a button it grabs the buttons textContent and places it as a value on the input textbox?
I’m having difficulty creating a simple calculator.
How do you set it so when you click a button it grabs the buttons textContent and places it as a value on the input textbox?
Rather than get the button’s text and send it, you would need to send a hard coded value I think.