I’m working with a simple jQuery slideshow that creates a caption over an image by using the text from the image’s title and alt text. It works great, but I don’t want it to display anything when an image in the slideshow doesn’t have a title/alt.
See the example code here:
http://jsfiddle.net/qWZWJ/24/
I basically need to add an IF statement to test if the image title/alt is blank, but I have no idea how to do that.
change the “display the caption” content on your javascript to this:
enjoy 🙂