I have a carousel of images that are dynamically populated. There is potential for up to 5 images, however, if there are less than 5 images, I need to enter some if statements in my code. Is it possible to use jQuery to check if img src is there?
For example, if I have an image with the "optional" class, but it does not have a url, is there a way to detect this with jQuery?
<img class="optional" src="" />
jquery image src
Sam skirrow
source share