1
Using plugin Jquery Dropdown: https://github.com/soundasleep/jquery-dropdown To create multiple 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 have clicked to open.Not closing when clicked on the body, either with right/left click, but close only when clicked on his button again, which will be entitled 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>
<script src="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>
Face in the moral abandons this plugin, it is very bad, the documentation is rhythmic and I see no need in this plugin, because it returns a normal dropdown, same as HTML. I repeat, I see no need for it.
– LeAndrade