This worked like a charm:
<script type="text/javascript"> $(document).ready(function() { $("a[href$='.jpg']").addClass('thickbox'); }); </script> -- View this message in context: http://www.nabble.com/Find-all-links-that-go-to-.jpg-images-tf4728653s27240.html#a13531475 Sent from the jQuery General Discussion mailing list archive at Nabble.com.