get src atribute in a code like this with jquery -


<div class="thumb">     <a class="clip-link" data-id="45778" title="title" href="http://mysite.com">         <span class="clip">             <img src="http://mysite.com/17.jpg" alt="pic alt"><span                   class="vertical-align"></span>         </span>          <span class="overlay"></span>     </a> </div> 

well know how attributes div, class, etc,, in case want pic src grid given structure, , don't know how reach specific clp span cli-link data-id, help?

thanks in advance!

$('a[data-id="45778"] > span.clip > img').attr('src'); 

Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -