var sr = "images/bmw.jpg"; var vari =$($gallery).find('[src = sr]').position(); console.log(vari);
var vari =$($gallery).find('[src="'+sr+'"]').position();