I have the following jquery code

$('.menu li').click(function() {
                $(this).children("ul").slideDown("fast");
                $(this).siblings("li").children("ul").slideUp("fast");
                if ( $(this).children("ul").length ) {
                        $(this).css("background-color","black");
                        return false;
                } else {
                        $(this).css("background-color","red");
                        return true;
                }
        });

Everything works as expected. However, the "return true" part doesn't
work. Is this wrong syntax?

Reply via email to