[jQuery] Transversing ul and manipulating
I have a ul with sub ul. I want to grab just the li items and copy
then make one long ul. They say i had 30 li items. I would like to
take first 10 and make a ul then second 10 and make ul and third 10
and make ul.
I tried to do it like this but it also grabs the sub ul not just the
sub ul li's.
$("#sitemap #map1").append($("#main-nav
ul#nav").find("li").clone().slice(0,11));
$("#sitemap #map2").append($("#main-nav
ul#nav").find("li").clone().slice(10,22));
$("#sitemap #map3").append($("#main-nav
ul#nav").find("li").clone().slice(21));