expand.js - collapsing when expanding another div
So i found the neat little plugin which make a cool expand/collaps-thingy on my site. The problem is that i only want one 'div' open at the time - i just can't f开发者_如何学JAVAigure out what to call, and where?
Working sample: http://jsfiddle.net/wLEGS/
What do you want to trigger the toggle event? They are calling it on their h2.expand
- you would do something similar but with the element you want.
$(function () {
$("h2.expand").toggler();
});
Edit
The current plugin does not have the functionality that you are looking for. jQuery accordian does.
精彩评论