jQuery - Shadowbox rebinding

前端 未结 2 1340
礼貌的吻别
礼貌的吻别 2021-01-18 09:40

How do I bind / initialize Shadowbox to content loaded by jQuery using AJAX?
Right now shadowbox works when I first come into the site.

However, when I swap the

2条回答
  •  暖寄归人
    2021-01-18 10:21

    Ah I just found the solution.

    Shadowbox.init can't be called 2 times.

    So use this instead.
    Shadowbox.setup();

    Thanks,
    Tee

提交回复
热议问题