it helps some times These lines are almost certainly not what you want! (If you're using eval, you should always ask whether it's really necessary; from 8.5 onwards, the likely answer is “it's not necessary”.)
this will help Given that you've shown an attempt, I figured I could throw you a bone here and give you a bit of an idea of how this might be implemented. The issue you've run into, that I've explained in my comments, is that you're trying to style a parent (the
) based on the status (checked/unchecked) of a child, which cannot be done in CSS.