Page 1 of 1

Jquery Accordion

Posted: Tue Oct 16, 2012 5:11 pm
by Fidbeck
I've been looking for a jquery accordion for a FAQ section of my site but I have a problem here....

In this example how to make the accordion with collpase option off
http://jqueryui.com/accordion/#collapsible

instead of this (orignal)
Image

this thing
Image

Re: Jquery Accordion

Posted: Tue Oct 16, 2012 6:05 pm
by Temor
I'm not sure I understand.
Do you want it closed by default?

Re: Jquery Accordion

Posted: Tue Oct 16, 2012 6:25 pm
by Fidbeck
Yup that's what I meant. sorry

Re: Jquery Accordion

Posted: Tue Oct 16, 2012 8:29 pm
by Fidbeck
Already sorted out

Forgot to read documentation.

[syntax=javascript]$(function() {
$("#accordion").accordion({
collapsible: true,
active: false
});
});​[/syntax]
This will do it.
I've just had to add
[syntax=javascript] collapsible: true,
active: false[/syntax]
to my version.

Thanks

Re: Jquery Accordion

Posted: Tue Oct 16, 2012 11:25 pm
by Temor
Self solving topics are the best!