1
I am giving the effect of slideDown() and slideup() in my table, it opens normally but does not give the expected effect. follow the code
$(".tabelaOculta").hide();
var oculta = false;
$(".expandirTabela").click(function(){
if(oculta == false){
$(this).parent().next('.tabelaOculta').slideDown();
oculta = true;
}else if(oculta == true){
$(this).parent().next('.tabelaOculta').slideUp();
oculta = false;
}
});
the html
<tr>
<td class="expandirTabela"><i class="fa fa-plus" aria-hidden="true"></i>
</td>
<td><a href="#">Faça o login</a></td>
<td><a href="#" class="btn-table-disp">DISPONIVEL</a></td>
</tr>
<tr class="tabelaOculta">
<td colspan="3">
<table>
<tr>
</tr>
</table>
</td>
</tr>