JavaScript related questions should go here.
Fidbeck
Posts: 147 Joined: Tue Sep 25, 2012 11:40 pm
Post
by Fidbeck » Tue Oct 16, 2012 5:11 pm
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 » Tue Oct 16, 2012 6:05 pm
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 » Tue Oct 16, 2012 6:25 pm
Yup that's what I meant. sorry
Fidbeck
Posts: 147 Joined: Tue Sep 25, 2012 11:40 pm
Post
by Fidbeck » Tue Oct 16, 2012 8:29 pm
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
Temor
Posts: 1186 Joined: Thu May 05, 2011 8:04 pm
Post
by Temor » Tue Oct 16, 2012 11:25 pm
Self solving topics are the best!