I have the following code...

```
<a href="test123.html" class="testclass">Test Link</a>

```

I need to add an image after the link but based on the class and href. I've attempted:

```
jQuery(".testclass a[href$='test123.html']").append("<br /><div style='padding:10px;'><img src='testimage.jpg'></div>");

```

But it doesn't work.