Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
When I click on any button it is disappearing
2 Respostas
+ 1
the button inside form fire a submit event. its like whe you're clicking on login button then the page change.
you can remove the form. but keep the input button
or add this to your js
window.onload = ()=>{document.querySelector("#calc").onsubmit = (e)=>{e.preventDefault();}}
0
Tq bro it's working