开发者

jQuery accordion plugin "active" problem

开发者 https://www.devze.com 2023-02-12 20:13 出处:网络
i\'m using jquery accordion plugin. in this plugin first clickable menu element is already selected and active. i want all clickable elements are closed in accordion. how can i do this? i try \"active

i'm using jquery accordion plugin. in this plugin first clickable menu element is already selected and active. i want all clickable elements are closed in accordion. how can i do this? i try "active: f开发者_C百科alse" and "alwaysOpen: false" but not working. sorry for my poor english.


According to the jqueryui documentation, you need to set collapsible to true when you initialise it:

$( ".selector" ).accordion({ collapsible: true });

The example is from the jQueryUI documentation.


$( ".selector" ).accordion({ collapsible: true, active: false });

make sure you write collapsible: true first and then active: false


$( ".selector" ).accordion({ collapsible: true, active: false });

Make sure both options are present.


Use false in active http://jsfiddle.net/q8aYH/ . But collapsible to true is 'true' method...


I solved. The problem caused by jQuery version. i'm using 1.3.2 i changed with 1.5 it fixed.

0

精彩评论

暂无评论...
验证码 换一张
取 消