http://github.com/juven14/Collapsible http://www.snyderplace.com/demos/collapsible.html
Instead of the two links "Open All" and "Close All" I want only one link toggling.
The jquery.collapsible.js
API comes with a toggle
method:
These are the methods available from the plugin:
-Via "Plugin Methods" on the page OP provided
Mimicking the style found on the demo page:
function toggle() {
$('.page_collapsible').collapsible('toggle');
}
$('#toggle').click(function(event) {
event.preventDefault();
toggle();
});