[jQuery] wrap siblings between 2 specific tags

[jQuery] wrap siblings between 2 specific tags


How do I wrap repeated sets of [ <h3> followed by other tags ] in a
div?
example:
<h3>
-------------




<ul><li>


-------------
<h3>
I want to wrap everything between the lines in a single [ <div
class="test"</div> ] ?
The # of tags in between the lines ( i.e. # of tags following <h3> )
will vary after each <h3> tag. They won't all start with a


thank you
how do I wrap