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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -