0
I made the following code in Javascript, for him to expand the dropdown, but now I do not know how to collect the menu, I wanted that when the "Focus" was not in the link, it collected (ex: clicking out of the reach of the menu):
$(document).ready(function() {
    $('li').click(function() {
        $('li.active').removeClass("active"); //aqui removemos a class do item anteriormente clicado para que possamos adicionar ao item clicado
        $(this).addClass("active"); //aqui adicionamos a class ao item clicado
    });
});
You can use the
.mouseleaveinli.– Felipe Viero Goulart