Select child of earlier clicked item in jQuery

Posted by koko on Stack Overflow See other posts from Stack Overflow or by koko
Published on 2010-12-22T21:49:13Z Indexed on 2010/12/22 21:54 UTC
Read the original article Hit count: 250

Filed under:
|

I have clicked on a div. In this div is an image:

<div class="grid_2 shareContent" id="facebook_45">
    <a href="#"><img class="facebook" src="http://roepingen.kk/skins/admin/default/images/social/facebook.png" alt="Facebook not shared" width="32px" height="32px" /></a>
</div>

How can I change the image in the div? I have the clicked item saved in the variable 'clicked'. If possible I'd like to delete the link around the image also.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery