Hello
I have this
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
<div class="item">5</div>
<div class="item">6</div>
<div class="item">7</div>
<div class="item">8</div>
and I want select from item 1 to item 5 and wrap them into an UL, and select 6 to 8 and wrapp them in another one.
<ul>
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
<div class="item">5</div>
</ul>
<ul>
<div class="item">6</div>
<div class="item">7</div>
<div class="item">8</div>
</ul>
How can I do that?. Thank you very much