Trying to hide all others, but it keeps affecting the $(this) item.
$(function() {
$(".FL-pest-indv").css({ display: 'none' });
$(".FL-pest-cat").live('click',
function() {
$(".FL-pest-indv").not($(this)).hide(600);
$(this).children('.FL-pest-indv').stop(true, true).animate({ "height": "toggle" , "opacity" : "toggle"},600);
});
});
nor
$(function() {
$(".FL-pest-indv").css({ display: 'none' });
$(".FL-pest-cat").live('click',
function() {
$(".FL-pest-indv").not(this).hide(600);
$(this).children('.FL-pest-indv').stop(true, true).animate({ "height": "toggle" , "opacity" : "toggle"},600);
});
});
are working for me.
Had the answer in my function all along.