Yehuda Katz schrieb:
> I've done a bunch of Accordion implementations for various projects, 
> but never codified them into a single plugin. I suspect it could be 
> done with much less code than some of the existing implementations. 
> What are the requirements for a totally abstracted accordion plugin?
I updated my implementation of the accordion: 
http://joern.jquery.com/accordion/accordion.html
It can now handle every "flat" structure, eg. dt+dd, h3+p, 
div.title+div. The number of content elements don't matter, those are 
handled by the nextUntil plugin. I couldn't figure a way to easily 
handle nested structures, eg div>div.title+div, but wondering wether 
that is really necessary.

There seems to be a nasty bug within not(), but not() uses the very 
cryptic filter() and is therefore hard to debug... If that could be 
resolved, this:
    active: $('#list2 dt.selected')[0]
could by simplified to
    active: 'dt.selected'

-- 
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to