jQuery plugin that lets you iterate the given function for each slice of <n> elements
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
README.markdown
jquery.each_slice.js

README.markdown

each_slice

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

License

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

Copyright (c) 2010 Burin Asavesna and Brandon Aaron