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

31st Oct 2024, 1:26 PM
nasrin kohestani
nasrin kohestani - avatar
5 Respostas
+ 4
It works as expected.I am not sure what are you facing ?
31st Oct 2024, 2:17 PM
Aysha
Aysha - avatar
+ 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.
31st Oct 2024, 5:04 PM
Shihan
Shihan - avatar
+ 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>
1st Nov 2024, 2:19 AM
Bob_Li
Bob_Li - avatar
+ 2
The code works perfectly. Not sure what you are experiencing.
31st Oct 2024, 1:39 PM
Jerry Hobby
Jerry Hobby - avatar
+ 2
Your code is running prefect. The color, border and font are changing.
31st Oct 2024, 2:24 PM
Arash Amorzesh
Arash Amorzesh - avatar