How to get the first div after a checked radio button
问题 I'm trying to make an accordion but I'm stuck at the last pice of the puzzle. I need to collapse all NOT checked div right after radio buttons. Only the div after a checked radio button should be visible. But it's not working. This is my html <input type="radio" name="alert" id="overzicht" class="accordion"> <label for="overzicht"> > Overzicht </label> <div class="accordionPanel"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore