I\'m using jQuery. I want to find the closest class .hidebox to the element that created the event. I tried to use parent, find and
.hidebox
parent
find
Despite of your html validity you can try do it like this:
$(".hideBox-tab").click(function(){ $(this) .closest("tr") .next("tr") .find(".hideBox") .toggle(); return false; });
.hideBox { display:none; }
show div aaa show div bbb