开发者

Open accordion-menu on demand

I'm using this accordion-menu on this site here: http://www.davidgoltz.de/2011/killer-exhibitions-berlin-ii/

Now I'M working on some php-lines to open the specific tree, from the current post you're watching but I cant reach the accordion to open! This is what I've tried to open something in this accordeon:

$( ".selector" ).accordion( "op开发者_运维知识库tion", "active", 2 );

Do you have any ideas?


I guess you are using the API in a wrong way. The documentation says there is a method activate to open the accordion programatively. As a method you have to invoke it like that:

$(".selector").accordion("activate", 2);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜