I made the following code in JavaScript, so it would expand the dropdown, but now I do not know how I get it to pick up the menu, I wanted it when the "Focus" was not on the link, it collapsed (eg range 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
});
});