Using Jquery DropDown plugin : link To create various menu styles, it is simple and easy to customize. I wanted to see if it would be possible to keep it always open, - after you clicked to open. Do not close when clicked on the body, either with the right / left click, but close only when you clicked its button again, it will be titled Close .
$("#jq-dropdown-1").on("click",function(event){
event.stopPropagation();
$('#jq-dropdown-1').dropdown('show');
});
.fechar {
display:none;
}
.jq-dropdown-open .abrir {
display:none
}
.jq-dropdown-open .fechar {
display:block
}
<link href="https://labs.abeautifulsite.net/jquery-dropdown/jquery.dropdown.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script><scriptsrc="https://labs.abeautifulsite.net/jquery-dropdown/jquery.dropdown.min.js"></script>
<a href="#" data-jq-dropdown="#jq-dropdown-1"><span class="abrir">Abrir Dropdown</span><span class="fechar">Fechar</span></a>
<div id="jq-dropdown-1" class="jq-dropdown jq-dropdown-tip">
<ul class="jq-dropdown-menu">
<li><a href="#">Science</a></li>
<li><a href="#">Eletronics</a></li>
<li><a href="#">Pellentesque convallis enim.</a></li>
<li><a href="#">Internet</a></li>
<li><a href="#">Business</a></li>
</ul>
</div>
Source: link