0
Edit:Thank you guys.i fixed my code.//Why my code closes when i choose a border and submit?
https://sololearn.com/compiler-playground/Wq7KzT4f9e8N/?ref=app
5 Answers
+ 4
It works as expected.I am not sure what are you facing ?
+ 3
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.
+ 3
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 your 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>
+ 2
The code works perfectly. Not sure what you are experiencing.
+ 2
Your code is running prefect. The color, border and font are changing.