Im using a plugin that requires the rel-element to look like this.
Here is one way:
$("#product-thumbs-list a").each(function(index) { var arrTemp = $(this).attr("rel").split("smallImage: "); var value = arrTemp[1]; alert(value); });
Live test case.