Using jQuery, what’s the most efficient way to split a list
<ul class="columnar"><li></li>... <li></li></ul>
into several sublists
<ul class="column1"><li></li>... <li></li></ul>
<ul class="column2"><li></li>... <li></li></ul>
where each sublist (apart from, possibly, the last one) has n items.
I want to keep querying and manipulation of the DOM to a minimum and move the original DOM elements into the new lists rather than cloning them.
This is what I’ve come up with so far: