Position an element using the position reference of the div box, the element is in display none and when it receives the click event ira appears on the screen, however it should appear below the div box.
<h3> Sindico<i class="taskAtiv glyphicon glyphicon-chevron-down">
</i>
</h3>
<div class="box row col-sm-2 box-white">
<p class="task">Descrição</p>
<br />
<p class="task">Descrição</p>
<br />
<p class="task">Descrição</p>
<br />
</div>
css
.box {
width: 200px;
font: 8px;
padding: 5px;
margin: 5px;
border: 1px solid #ccc;
display: none;
position: absolute;
z-index: 9999999999999999;
top: 54%;
}
.task {
cursor: pointer;
padding-left: 5px;
margin-bottom: 0px;
border-bottom: 1px solid #ccc;
}
Javascript
$(".taskAtiv ").on("click", function () {
$(this).toggleClass("glyphicon-chevron-down").toggleClass("glyphicon-chevron-up");
});