How can I select all elements between two tags of the same type using javascript or jquery?
For example, if I had:
<h1></h1> <h2><h2> <li1></li1> <li2></li3> <li3></li4> <h2></h2>
How can I get everything <li> ?
I tried using this $units=$(this).nextuntil("h2"); but he did not work
Pillblast
source share