Question: On my website, users click on an image. However, in the code they're actually clicking on an `<a>` with an `<img>` in it. I want there to appear a red ring around the image when the user clicks it. The `<img>` and the `<a>` have the same id and class.

Is it possible to have `$(this).addClass('SelectedService');` add a class to an `<img>` inside an `<a>`?

Answer: 
```
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>    
$('#id_link').click(function(){
   $(this).toggleClass('SelectedService');
});

```

assuming that class is a red ring
Instead of selecting `$(this)`, you should use like this to work.

```
$('img').addClass('SelectedService');

```

this will select `img` tag inside `a` tag and add class to `img`