+ 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
1 ответ
+ 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.