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;
});
});
time to push the pixels
October 28, 2010
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;
});
});
© 2024 Alex Barber | Digital Artist