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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -