How to trigger a JavaScript function after “Bootstrap: collapse plugin” transition is done

后端 未结 3 686
失恋的感觉
失恋的感觉 2021-02-19 06:18

I\'m trying to re-size iframe height after Bootstrap: collapse plugin transition is finished. Click event doesn\'t work because the transition is not f

3条回答
  •  孤独总比滥情好
    2021-02-19 06:58

    I've never used the collapse plugin, but in the documentation it says there is a callback called 'hidden' that should be called once the element transition has finished:

    $('#myCollapsible').on('hidden', function () {
        // do something…
    });
    

提交回复
热议问题