Here is the structure of my HTML:
<input type = "checkbox" style = "display:none" id = "select">
<label for = "select" id = 'click'>
click
</label>
<div class = 'next'>
</div>
I am trying to style the 'next' div when the checkbox is checked using CSS selectors.
I attempted this approach but it did not work as expected:
#click:checked + .next{
}
Do you have any suggestions on how I can achieve this styling?