i want to get the url for the image. For this i use this code
$(function () {
$('.li').mousedown(function (e) {
if (e.which === 1) {
$(".li:nth-child(n) a").attr('id');
var clickId = this.id;
var n = clickId - 1;
var imageurl = $(".fadein img:eq(" + n + ")").attr("src");
alert(imageurl);
}
});
});
problem is next. slide show displays a second image. I click on the first position and i'm getting the current url of image which is displayed. How to get the url of first image ?
who knows!!!!!! why i don't get an url of the image by id?