开发者

jquery Accordion -- collapsible bug

开发者 https://www.devze.com 2023-02-04 11:51 出处:网络
in jQueryaccordion, we could set collapsible parameter as follow $(\"#accordion\").accordion({ active: 0 , collapsible: true});

in jQuery accordion, we could set collapsible parameter as follow

$("#accordion").accordion({ active: 0 , collapsible: true});

The collapsible behaviour is working fine for the first time. But subse开发者_StackOverflowquently it would give error and stop the whole accordion behaviour. "this.toHide.parent()[0] is undefined"

Any idea whether this is known bug for this?


I was having this problem using Google for CDN. I used a previous version of the UI code and now it seems to be working. 1.8.8 seems to be causing the error so try using 1.8.7 instead - https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/jquery-ui.min.js


recent versions of jquery-ui fixed the issue


There was definitely an update on the CDNs.. I'm using google, and the 1.8.8 update has broken this. If you are just using /ajax/libs/jqueryui/1.8/jquery-ui.min.js, change it to /ajax/libs/jqueryui/1.8.7/jquery-ui.min.js

I had the exact same problem and this worked for me!


Even the demo on their own site is broken!! http://jqueryui.com/demos/accordion/#collapsible I tried FF and Chrome and it doesn't work in both.

0

精彩评论

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