Magnific popup: Get current element in callback

后端 未结 6 1297
借酒劲吻你
借酒劲吻你 2020-12-06 05:58

In Magnific Popup, I want to get an attribute in the link that is clicked and use it in a callback function (using callbacks: open) to make some changes in the DOM.

6条回答
  •  一生所求
    2020-12-06 06:49

    Also, inside open: function(item) {}, this.content might help.. It will return the div of the content being shown. useful with the change: function () {} as well. Hope it helps someone like me.

提交回复
热议问题