+ 2

Why is the click not counted and the page gets reloaded?

The aim to to count the number of times a button is clicked. Also I have used form tags. But the page only gets reloaded. https://code.sololearn.com/WynK8bkTkrnQ/?ref=app

23rd Feb 2018, 2:11 PM
VJ46
VJ46 - avatar
1 Odpowiedź
+ 4
Delete the Form tags. Form is only used if you really send data to a server but not for dynamic website manipulation like you want to do here ^^
23rd Feb 2018, 2:15 PM
Chrizzhigh
Chrizzhigh - avatar