Jquery Accordion

JavaScript related questions should go here.
Post Reply
Fidbeck
Posts: 147
Joined: Tue Sep 25, 2012 11:40 pm

Jquery Accordion

Post 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
User avatar
Temor
Posts: 1186
Joined: Thu May 05, 2011 8:04 pm

Re: Jquery Accordion

Post by Temor »

I'm not sure I understand.
Do you want it closed by default?
Fidbeck
Posts: 147
Joined: Tue Sep 25, 2012 11:40 pm

Re: Jquery Accordion

Post by Fidbeck »

Yup that's what I meant. sorry
Fidbeck
Posts: 147
Joined: Tue Sep 25, 2012 11:40 pm

Re: Jquery Accordion

Post 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
User avatar
Temor
Posts: 1186
Joined: Thu May 05, 2011 8:04 pm

Re: Jquery Accordion

Post by Temor »

Self solving topics are the best!
Post Reply