JavaScript related questions should go here.
-
Fidbeck
- Posts: 147
- Joined: Tue Sep 25, 2012 11:40 pm
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)
this thing

-
Temor
- Posts: 1186
- Joined: Thu May 05, 2011 8:04 pm
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
Post
by Fidbeck »
Yup that's what I meant. sorry
-
Fidbeck
- Posts: 147
- Joined: Tue Sep 25, 2012 11:40 pm
Post
by Fidbeck »
Already sorted out
Forgot to read documentation.
$(function() {
$("#accordion").accordion({
collapsible: true,
active: false
});
});
This will do it.
I've just had to add
collapsible: true,
active: false
to my version.
Thanks
-
Temor
- Posts: 1186
- Joined: Thu May 05, 2011 8:04 pm
Post
by Temor »
Self solving topics are the best!