Adding image to the particular li
<p>I have a list of li tags with an image. When a user clicks a particular link i want to change the image. When a user clicks a new li tag then the last li tag should reset. I done everything except to set a new image for the particular li tag. And the major problem is i'm not passing any arguments to the function.</p>

<pre><code>$(document).ready(function(){
    $(".sized ul li a").click(function(){
    $('.sized ul li a img').each(function(){$(this).remove(); }); // Removing all images
    $('.sized ul li a ').each(function(){$(this).append('&lt;img src="1.png" /&gt;'); });// Reset the images
});
</code></pre>
