+ 2

Help me on Understanding checkbox!

I want to change the background color, when the checkbox is checked by the user! Edit the following code to make this happen. https://code.sololearn.com/WxZM0zZLEHjb

3rd Jul 2018, 1:30 PM
Çůřîöş ßąšäñț 🇮🇳
Çůřîöş ßąšäñț 🇮🇳 - avatar
4 odpowiedzi
+ 7
https://code.sololearn.com/WF3K4aqIp8Yr/?ref=app
3rd Jul 2018, 2:13 PM
Lakhvir Singh
Lakhvir Singh - avatar
+ 2
You cant select a parent with CSS only, use JS.. or set a full screen child div, use input:checked + div selector to set background color.
3rd Jul 2018, 2:05 PM
Calviղ
Calviղ - avatar
3rd Jul 2018, 2:22 PM
Calviղ
Calviղ - avatar
0
What have you tried so far? You will need to use JS.
3rd Jul 2018, 1:37 PM
damyco
damyco - avatar