<img src="http://site.com/some/category/thread_17.jpg" />
<img src="http://site.com/other/thread_17.jpg" />
How to find the last image on the page, that have "thread_
" after last "/
" in its src
attribute?
Script should throw src
to some var
iable.
Ajax is used to find the images on external page
$.ajaxQueue({
url: link,
type: 'GET',
success: function(data) {
var src = $('.slide img', data).attr('src');
}
});
It gives attribute of the last image from .slide
block.
Thanks.