When clicked, I want to target the child of the sibling of the parent's parent. There are multiple containers, so when removal is clicked, only the image in that specific div should be changed.
I have tried using this jQuery code, but it doesn't seem to be working. Am I missing something with an extra parent?
$('.removal').click(function() {
$('this').parent().siblings('.item-img').find('.productImage').addClass('cart-removal-item-img')
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<div class="container">
<div class="item-img">
<img class="productImg" src... />
</div>
<div class="rndm1">
</div>
<div class="rndm1">
</div>
<div class="item-action">
<div class="rndm1"></div>
<p><a class="removal" href="">remove</a></p>
</div>
</div>