I'd like to break apart a list by inserting closing tags with jquery.
Here's the original:
<ul>
<li>one</l1>
<li>two</li>
<li>three</li>
<li>four</li>
</ul>
and i'd like to turn it into:
<ul>
<li>one</l1>
<li>two</li>
</ul>
<ul>
<li>three</li>
<li>four</li>
</ul>
I haven't been able to accomplish this using :nth-child(n) or .html() or .append(), but I'm thinking perhaps some sort of outter html replace would do it. Maybe there's an easier way. Any ideas?