I'm trying to capture the source of an image with jquery.
My HTML looks like this:
& lt; Div class = "featured slider_mage" & gt; & Lt; Img src = "http://apture.s3.amazonaws.com/0000012865c9e9d984b36217007f000000000001.latte%20heart.jpg" /> & Lt; / Div & gt; & Lt; -! FeaturedSlideImage - & gt;
My jQuery selector is:
return '& lt; Li & gt; + JQuery (slide) Children ("Slips image"). Html (); + '& Lt; / Li & gt; ';
Which presents it again:
& lt; Img src = "http://apture.s3.amazonaws.com/0000012865c9e9d984b36217007f000000000001.latte%20heart.jpg" />
I just had to return to that source, how can I go about this without HTML?
warning (jQuery (slide). Attr ("src")) // http: //apture.s3.amazonaws.com/0000012865c9e9d984b36217007f000000000001.latte%20heart.jpg
Just tells you the image URL
test it here:
Comments
Post a Comment