JQuery Lightbox Problem
JQuery Lightbox Problem
I'm modifying a javascript file that creates a series of divs and image links based on the jquery tags given.
something like this
-
<script type="text/javascript">
prodImages.imgs['thumb4'] = {large :'<?php bloginfo('template_directory'); ?>/images/f/p-4.jpg'}
</script>
then the script does something like
-
$('#div').after('<div class="newDiv"><a href="some/image"><img src="some/other/image" /></a></div>');
My problem is, I need to do
-
$('.newDiv').lightBox();
so that all those generated image links display in a lightbox. I have this working on pages where the images are hardcoded into the page. But any of the jquery generated links are ignored. I understand why this is, just not how to fix it.
I'm new to jQuery and am lost on this one.
Thanks,
Brandon