0

When I click on any button it is disappearing

https://code.sololearn.com/WRFIg8ss5knN/?ref=app

4th Mar 2020, 5:29 PM
Sai Dinesh
Sai Dinesh - avatar
2 Réponses
+ 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();}}
4th Mar 2020, 5:47 PM
Taste
Taste - avatar
0
Tq bro it's working
4th Mar 2020, 5:53 PM
Sai Dinesh
Sai Dinesh - avatar