Link to open jQuery Accordion

前端 未结 7 2285
臣服心动
臣服心动 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:47

    This worked for me...

    var hash = window.location.hash;
    $("#accordion").accordion("activate", hash);
    
    0 讨论(0)
提交回复
热议问题