try something like this:
$(function () {
$('.circle li').on('click',function (e) {
var id = $(this).attr("id"); //this is the number of id
var elem = $(this).attr("id") -1; //this is modified id to table elements
var imageurl = $('.fadein img:eq('+elem+')').attr('src');
alert( 'the no. '+id +' have url ' + imageurl);
});
});
here is the example http://jsfiddle.net/CzmTA/3/
and remember the position of element in jquery is an array and it starts from 0 not 1 i think this should work