I'm trying to show one div and hide other divs with the same class, when a link is clicked
$(this).find('h2 a').click(function() {
$('.expand-collapse:eq(' + numberFix + ')' ).show('fast');
$('.expand-collapse:eq:not(' + numberFix + ')' ).hide('fast');
return false;
});
It does show the affected div, but the other divs don't hide - am I using :not in a wrong way? I used it this way with "nth-child" and that worked fine.
Any ideas on how to go about this would be appreciated! :)