Link to open jQuery Accordion

前端 未结 7 2307
臣服心动
臣服心动 2020-12-03 12:16

I\'m trying to open an accordion div from an external link. I see the \"navigation: true\" option but I\'m not sure how to implement it. Do you give each div an id and call

7条回答
  •  自闭症患者
    2020-12-03 12:39

    With a server-side language, check the query for that #anchor and use it to fill out the activation statement.

    Extracted from something I was just working on:

    $("#search_forms").accordion("activate", "{$this->open_form}");
    

    Edit:

    I can't link directly to the accordion method blurb, but this gets you close:

    http://docs.jquery.com/UI/Accordion#methods

提交回复
热议问题