This is a FAQ page I built with custom jquery function that toggles
the answers open/closed on click of a question, and Im just wondering
if anyone has a suggestion to make the code leaner and meaner:

http://dfrecruiting.com/faqs

The code:

        $(".entry h4").click(function() {

                if ( $(this).hasClass("active") ) {
                $(this).removeClass("active").next().animate({ opacity: 0 },
200).slideToggle(500).removeClass("active");
                } else {
                $(this).addClass("active").next().addClass
("active").slideToggle(500).animate({ opacity: 1 }, 1000).dequeue
().siblings('h4.active').not(this).removeClass('active').next().animate
({ opacity: 0 }, 200).slideToggle(500).dequeue().removeClass
("active");
                }

                return false;
        });

Thanks!!

Reply via email to