May 14, 2010 at 8:31 pm #75752
Since you know you need to go two levels up, you can use positional selectors
$(‘.someClass:eq(1)’) // selects the second element with a class name of someClass (yeah, it’s base 0)
For your example you can use (note: using parents() rather than parent()):
Which will find all parents of $(this), select the 2nd one, and hide it.