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
Category: jQuery One comment »
July 28th, 2009 at 2:04 am
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