Hi guys, I have the following style markup:
- <h2>
- <span class="status">
- UNDER OFFER
- </span>
- </h2>
- <a class="img" href="#">
<img class="mainImg" src="/graphics/mainImg.jpg"/>
</a>
Basically what I need to do is find the next instace of the class "img" AFTER it finds a class of "status". However i need it to find the next instance in the rest of the html below the "status" class it has found.
I have been trying:
$(".status").next(".img").append('<img src="/graphics/under_offer.gif" class="offer"/>');
As i'm trying to add an overlay image to the hyperlink so it will appear on top of the image that is already there (css absolute and z-index).
Bet grateful for any help!
Dave