When a list item is clicked how do you make a line go through it? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

When a list item is clicked how do you make a line go through it?

If you see my css you can see that I tried to make it so that when list items are clicked a line goes through it but it won't work. Can I have help? https://code.sololearn.com/WBD87kc45rl5/?ref=app

4th Apr 2018, 4:43 PM
Babydoll Scripts
Babydoll Scripts - avatar
1 Antwort
+ 1
Better idea is to add hidden checkbox in each item and text to be in label tag for this checkbox. When user click on text - checkbox state will be changed automatically. You can set css to change label depend on checkbox state.
4th Apr 2018, 5:18 PM
Damyan Petkov
Damyan Petkov - avatar