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: 
```
$('#ahref1').bind('click', function(){
    $(this).find('img').first().addClass("SelectedService");
});

```

If your html is something like:

```
<a id="ahref1" href="..."><img src="..." /></a>

```
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`