I’m using jquery lightbox in a project, and I want to customize it a bit…
Basically, I’m adding a title to the top of each pop-out lightbox enlarged image. Now the Title will change depending on the class of the anchor tag that contains the image. I have 3 classes,and each class will have different text for the title.
Now here is my JSfiddle to see what I’m trying…
As you can see, when the lightbox animation is activated, the ‘My Text’ title does not change when going to an image of different a-tag class…
Any suggestions? Look at my JS code
use hasClass instead of .is. Jquery hasClass is a boolean type