I’m not sure if the button click is the source but when I submit the numbers the result would dissapear nearly instantly and then dissapear because of the site reloading. I want a result to show up at the output class. I
1 Like
Looking at your HTML, your “Calculate!” button is of type submit
Admittedly, this stackoverflow thread is nearly a decade old, but their solution is to change it to type button
Edit
:
Just tried it, it works (on mobile…)
3 Likes
Of course! Feel so dumb afterwards. I’m used to handling buttons with PHP, so I used submit 🤦🤦. Thanks for the answer!