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
Actually, i personally had to do:
Shadowbox.clearCache(); Shadowbox.setup();
to get shadowbox to acknowledge the DOM change.
Ah I just found the solution.
Shadowbox.init can't be called 2 times.
So use this instead. Shadowbox.setup();
Thanks, Tee