jQuery find img
- by Happy
<img src="http://site.com/some/category/thread_17.jpg" />
<img src="http://site.com/other/thread_17.jpg" />
We want to find the last image on the page, that have "thread_" after last "/" in its src attribute.
Script should throw its src to some variable.
I'm using ajax to find images on external page
$.ajaxQueue({
url: link,
type: 'GET',
success: function(data) {
var src = $('.slide img', data).attr('src');
}
});
Is it possible to do?
Thanks.