<div class="group group2">
<div class="groupHeader">New Group</div>
<ul>
<li><span class="moreLinks">Add a link</span></li>
</ul>
</div>
</div>
How can I get the class "group2" when the user clicks the class "groupHeader"?
I tried it with prev()but it returned undefined.