Is to possible to check if link is to an image
Hey
I'm trying to use jQuery to trigger a light box for images contained in a hyperlink inside a content area, The code snippet should help to show what i mean.
-
<div id="contentcontainer">
<a href="www.site.com/image.jpg">
<img src="www.site.com/image_thumb.jpg" />
</a>
</div>
Is it possible for jQuery to detect the link above is to an image? to assign a class to it.
Thanks
Phil