Difficulty Building A Calculator

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.

1 Like

Sorry for the late reply, just got back from work.

Anyway, I installed the Toolbox plugin to write the simple Javascript as seen here…

However when I clicked on button 1 It didn’t add a value, instead console gave me this…
44 PM

Any suggestions?