Using JQuery Lightbox within AJAX loaded content
Posted
by
James
on Stack Overflow
See other posts from Stack Overflow
or by James
Published on 2011-04-29T14:47:54Z
Indexed on
2013/07/02
23:06 UTC
Read the original article
Hit count: 159
Hey. So this is probably a very noob problem but I'm not good enough to fix it. Basically... I have a gallery that I am loading into the page via AJAX. It looks simply like this:
<div id="gallery">
<a href="Image1.jpg"><img src="Image1Thumb.jpg" /></a>
<a href="Image2.jpg" title=""><img src="Image2Thumb.jpg" /></a>
</div>
But because it's being loaded in as AJAX content, JQuery/Lightbox is not working and I've no idea how can I get the script to run/recognise this newly loaded content.
Thanks!
[Note: The JQuery Lightbox I am using.]
© Stack Overflow or respective owner