0
Why my code closes when i choose a border and submit?
https://sololearn.com/compiler-playground/Wq7KzT4f9e8N/?ref=app
5 Respuestas
+ 3
It works as expected.I am not sure what are you facing ?
+ 2
The code works perfectly. Not sure what you are experiencing.
+ 2
Your code is running prefect. The color, border and font are changing.
+ 2
Your code is working fine.
Is there anything specific you want to know?
Or trying to advertise your creation? If yes, use appropriate thread for that.
+ 2
you don't actually need the <form></form> containers since you are not submitting to a server.
maybe you put the button inside a form container before refactoring yor code. That would trigger a post action and refresh the page resulting in a blank page in Sololearn.
try this:
<form>
<button>click me and the page goes blank</button>
</form>
<button>click me and nothing happens</button>