Is there away to select all siblings until the next specific class .parent
?
In our case we have a list of Divs and there is no hierarchic in the HTML, they are all on the same level. We don't have access to update the HTML structure.
<div class="parent"></div>
<div></div>
<div></div>
<div></div>
<div class="parent"></div>
<div></div>
<div class="parent"></div>
<div></div>
<div></div>
<div class="parent"></div>
<div></div>
<div></div>
For example would it be possible to select the parent and child and add a alternate colors?