This should be simple, but I'm cracking my brain with the syntax.
I have a simple lightbox function that works perfectly with images that are already there at runtime. But I have a hidden div that loads content from another script - sometimes, it also includes images that I'd like to lightbox.
I know that I need to add on() here, but I'm screwing up the syntax.
Here is the working function layout:
$('.lightbox_trigger').click(function(e) {
//function body here
});//end function
This should be a simple fix, but when I wrap this in on(), I seem to be screwing it up. I'd love a quick suggestion. Thanks!