Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (10 sloc) 621 Bytes


jQuery plugin that lets you iterate the given function for each slice of n elements


The plugin acts much like each except each iteration is a collection of n elements.

$('li').each_slice(2, function() {
    // this == jQuery collection containing two li elements


The expandable plugin is dual licensed (just like jQuery) under the MIT and GPL licenses.

Copyright (c) 2010 Burin Asavesna and Brandon Aaron

Something went wrong with that request. Please try again.