Posterous theme by Cory Watilo

jQuery Plugin: wrapList

Ok, so now I'm on a roll with the jQuery plugins.  This time it's a simple plugin that takes a single unordered list and segments it at predefined intervals into additional lists.  Each list is then floated to the left making it appear to wrap content to the next "column".  The plugin is extremely simple to use but works really well on all sorts of content.

Download: jQuery.wrapList.zip

| Viewed
times | Favorited 0 times
Filed under:  

3 Comments

Jul 28, 2009
Paul Harding said...
Great little plug-in, thanks!

I needed to extend it by adding the following line to ensure any classes set in the original UL are passed on to the "split" ULs:

$(newUl).attr("className", $(curUl).attr("className"));

This goes in the main for loop.

Thought I'd pass this on...

Cheers,
Paul

Jul 18, 2010
ffxiv power leveling said...
Great articles & Nice a site!!
Jul 22, 2010
wow power leveling said...
There is obviously a lot to know about this.

Leave a comment...