<span class='act_inact active'>Active</span><span class='act_inact inactive'>Inactive</span>
When I click .active it should become hidden and .inactive should be come visible and vice verca. As these are classes, there are many on the page.
$('.act_inact').click(function() {
$(this).toggle();
$(this).closest('.act_inact').toggle();
});
This does nothing but I don't quite know why? I'd prefer using closest() to avoid having to use next() and prev().