I tried to solve this problem, but I cannot understand it without serious workarounds.
if I have the following HTML:
<ul>
<li class="parent"> headertext </li>
<li> text </li>
<li> text </li>
<li> text </li>
<li class="parent"> headertext </li>
<li> text </li>
<li> text </li>
</ul>
Now, how now just select tags <li>after the first parent (or, secondly, for that matter)? Basically select <li>s class="parent"and the following siblings until you reach another <li>with the parent class.
I could rebuild the list using nested lists, but I don't want to do this. Any suggestions?
source
share