jQuery find img

Posted by Happy on Stack Overflow See other posts from Stack Overflow or by Happy
Published on 2010-06-18T05:28:58Z Indexed on 2010/06/18 5:33 UTC
Read the original article Hit count: 313

Filed under:
|
<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.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about img