closest looking for ancestors, not brothers and sisters; also missing in your selector . at the beginning (you tell him to look for the vuQuestionBubble element, where you really mean the div with the class "vuQuestionBubble").
With your current structure you can use the next , because the div with "vuQuestionBubble" is the next element. However, if you ever change the structure and place something in between, next will not work for you.
I would use nextAll("div.vuQuestionBubble:first") or nextAll(".vuQuestionBubble:first") (links: nextAll :first ):
$(document).ready(function () { $('.prodQuestionMark').click(function () { $(this).nextAll('div.vuQuestionBubble:first').show();
This will find the first div with the class "vuQuestionBubble" that follows img as a sister, even if it is not the one next to img and therefore your code is less prone to maintenance problems if the markup changes slightly.
source share