Unbind/Destroy fancybox 2 events

前端 未结 4 1900
孤城傲影
孤城傲影 2021-01-12 11:49

I am having a strange issue, I have code that pulls content via ajax and then binds Fancybox (2) to certain elements. The issue is that when I \"refresh\" this page I call t

4条回答
  •  温柔的废话
    2021-01-12 12:17

    You can use this code to destroy fancybox functionality on links:

    jQuery('a').unbind('click.fb').removeData('fancybox');
    

提交回复
热议问题