The script isn't actually a jQuery plugin, so you can't call addDiv() directly on a set of jQuery elements. However, that's easy to work around. Simply gather the elements you want to target using jQuery first, then loop through it and call animatedcollapse.addDiv() on each element. An example:
Code:
jQuery(document).ready(function($){
var $group=$('#jason, #kelly, #michael') //group of elements as a jQuery object
$group.each(function(i){
animatedcollapse.addDiv(this.id, 'fade=1,height=80px')
})
animatedcollapse.init()
})
Bookmarks