I have a form like this:
<div class="content">
<form>
<div class="item">
blablaform stuf
</div>
<div class="item">
blablaform stuf
</div>
<div class="item">
blablaform stuf
</div>
<div class="item">
blablaform stuf
</div>
</form>
</div>
Now I want to wrap a few of the item divs inside form. Basically like this:
<div class="content">
<form>
<div class="wrapper">
<div class="item">
blablaform stuf
</div>
<div class="item">
blablaform stuf
</div>
</div>
<div class="wrapper">
<div class="item">
blablaform stuf
</div>
<div class="item">
blablaform stuf
</div>
</div>
</form>
</div>
How can I do it with jQuery? append()
? :nth-child
or how?
Thanks.