Hi guys.

I am wanting to click the link with the class "test" the function
append href taking the (already up and running) appears in the
"picture" div, but only in the same div "lol" where there is also a
class "test".

suggestions?

-----------------------------------------------
This is html code:

<div id="lol">
<div class="picture">
lorem ipson
</div>

<a class=" test" href="http://www.google.com/myckey.gif";>Google</a>

</div>

<div id="lol">
<div class="picture">
lorem ipson
</div>

<a class=" test" href="http://www.google.com/donald.gif";>Google</a>

</div>



-----------------------------------------------------------
This is code jQuery.

$(".test").click(function() {
     var url = this.href;
     $(".picture").append("<img src='+url+'/>");   --->> This is
wrong  ---  find reverse?parent?
    });



Thanks. =D

Reply via email to