0

I would like to to apply a different style to ul, if within its li there is a input tag

So the first list should look different from the second one. How to achieve this in regular CSS with no JS?


<ul>
    <li><input disabled="" type="checkbox"> Item unchecked</li>
    <li><input checked="" disabled="" type="checkbox"> Item checked</li>
</ul>

<ul>
    <li>Item unchecked</li>
    <li>Item checked</li>
</ul>
Jin
  • 1,529
  • 1
  • 10
  • 28
Radex
  • 6,303
  • 18
  • 44
  • 76

0 Answers0