re-initialize jquery accordion on callback

后端 未结 2 1260
误落风尘
误落风尘 2021-01-18 09:45

I\'ve got the accordion working fine on pageload, however upon user interaction with some elements on the page, I am using ajax to rebuild the HTML of the accordion. Then, I

2条回答
  •  终归单人心
    2021-01-18 10:47

    Destroy the accordian before repopulating it with data.

    $('#accordion').accordion('destroy');
    

提交回复
热议问题