Blogs Lesson Plans and Lesson Ideas | BrainPOP Educators ul > li > a’).click(function() { $(‘.menu-dropdown li’).removeClass(‘active’); $(this).closest(‘li’).addClass(‘active’); var checkElement = $(this).next(); if((checkElement.is(‘ul’)) && (checkElement.is(‘:visible’))) { $(this).closest(‘li’).removeClass(‘active’); checkElement.slideUp(‘fast’); } if((checkElement.is(‘ul’)) && (!checkElement.is(‘:visible’))) { $(‘.menu-dropdown ul ul:visible’).slideUp(‘fast’); checkElement.slideDown(‘fast’); } if($(this).closest(‘li’).find(‘ul’).children().length == 0) { return true; } else { return false; } }); $(“h5”).each(function() { var _this = $(this); _this.html(_this.html().replace(/ /g, ‘ ‘)); }); }); })(jQuery); ]]> This website uses cookies to enable you to use our website and to analyze the traffic. AcceptMore info
Privacy & Cookies Policy