0

Changing the background color of buttons

Why won't the background color of the buttons change even after clicking the button https://sololearn.com/compiler-playground/Wtkous9Ff2Y4/?ref=app

23rd Feb 2024, 9:16 AM
Oladapo Joseph
Oladapo Joseph - avatar
2 Antworten
+ 2
DO NOT put the link in the tag section. The tag section is for indicating the relevant programming language.
23rd Feb 2024, 9:19 AM
Lisa
Lisa - avatar
+ 1
id must be unique. you cannot have to elements with the id #hi. Also, wherever you got the code from, the div with class="Div-2" are not closed properly
23rd Feb 2024, 9:22 AM
Lisa
Lisa - avatar