Hi guys
I'm trying to do the following:

-----------------------------------------
$(document).ready(function(){
  img=$(".img");
  imga=img.attr("href");
  $(&quot;#imgbox&quot;).append(&quot;<img src='&quot;+imga+&quot;'/
>&quot;);

});
---------------------------------------

Want to get all the images with the "img" class and the append them in
the div "imgbox". But I can only return the first image. Does anyone
have any suggestions? Thanks.

EX:. these are the images that I want to get
---------------------------------------
<a class="img" href="http://example.com/Zelda-01.jpg"; >Galeria</a>

<a class="img" href="http://example.com/Zelda-02.jpg"; >Galeria</a>
...
---------------------------------------

Reply via email to