Reputation: 103
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 figure out what to call, and where?
Working sample: http://jsfiddle.net/wLEGS/
Upvotes: 0
Views: 1776
Reputation: 11175
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.
Upvotes: 1