Alex Barber | Digital Artist

time to push the pixels

jQuery.each iteration

I needed to iterate through a collection in jQuery.

http://jqueryminute.com/jquery-iteration-and-each/

$(‘a.expandcollapse’).each(function(index) {
$(this).click(function() {

$(‘.modal’).cycle(index+1);

return false;

});

});

Next Post

Previous Post

© 2024 Alex Barber | Digital Artist