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.
精彩评论