I know its something that you don't meet very often..but I'll try describe it.

I have a list of links. I also have a script that makes the link that has been clicked active by adding a class to it. Every time a link clicked, we have a different active link.

Problem is that every time this happens, I want an image prepend to this ACTIVE link.
I manage to add this image but unfortunately script add this image EVERY TIME that clicked on link and not only for the active link. I want this image to be prepend ONLY for active class link. 

My script is:

```
$(function(){
    var sidebar = $('#sidebar');
    sidebar.delegate('a.inactive','click',function(){
        sidebar.find('.active').toggleClass('active inactive');
        $(this).toggleClass('active inactive');
        $(this).prepend('<img class="gallery-selected-bg" src="http://www.saugeentimes.com/496%20Liz/girls%20soccer%20aug%204,%202010/soccer-ball-small.jpg">');
    });
});

```

Sorry if I did not describe it well, you can see my code please... If I could tell it simpler this I want is only one ball for only the active link that may be changes by click.

**<http://jsfiddle.net/dstpt/390/>**