0
Would you like to know how to hide and show div using href? For example, I have a Title called "Filter" when clicking on the button next to it, I want you to show the elements that are inside it and when you click again I want you to hide the elements.
<div class="widget boxed">
<div class="widget-head">
<h4 class="pull-left">
<i class="icon-reorder"></i>Filtros
</h4>
<div id="filtro" class="widget-icons pull-right">
<a href="#" class="wminimize"><i class="fa-angle-double-down"></i> </a>
<!-- ocultrar nesse aqui-->
</div>
<div class="clearfix"></div>
</div>
<div class="widget-content" style="display: none;">
<!--pra esconder isso -->
You can show your HTML structure?
– Sergio
<div class="widget Boxed"> <div class="widget-head"> <H4 class="pull-left"> <i class="icon-reorder"></i>Filters </H4> <div id="filter"class="widget-icons pull-right"> <a href="#" class="wminimize"><i class="fa-Angle-double-down"></i> </a> <!-- hide here--> </div> <div class="clearfix"></div> </div> <div class="widget-content" style="display: None;"><! --to hide this -->
– Diego Oscar Imhof
Diego, I put the comments HTML in the question, I still don’t understand which part should be hidden when pressing where. You can click on [Edit] and explain better?
– Sergio
I can’t put the whole code in it’s too big.
– Diego Oscar Imhof