How do I get with jQuery absolute path of this image?
img.attr(\"src\") give
img.attr(\"src\")
Give current clicked image source in jQuery
jQuery(document).ready(function($){ $('body').on('click','img',function(){ alert('it works'); var imgsrc=$(this).attr('src'); alert(imgsrc); }); });