jQuery each_slice Plugin Documentation

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

Usage

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
});