-1
Good evening, I would like some help... I’m trying to use the Boostrap 3.3 Collapse in a row of a table, the code is like this:
<table>
<thead>
<tr>
<th>header</th>
<th>header</th>
<th>header</th>
<th>header</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a class="btn btn-xs btn-block btn-default" data-toggle="collapse" data-target=".child" aria-expanded="false" aria-controls="collapseExample">
<i class="fa fa-caret-right" aria-hidden="true"></i>
</a>
</td>
<td>data</td>
<td>data</td>
<td>data</td>
</tr>
<tr class="collapse child">
<td>
</td>
<td>data</td>
<td>data</td>
<td>data</td>
</tr>
</tbody>
</table>
the problem is that the animation of Collapse is not working, someone knows how to solve?
So collpase used with div, as in your example, works normally, but in table the Animation does not work at all. (tested take out all my modifications). I still can’t fix it :(
– Jedson Melo
But you tried with another code ready and it worked normal? If this happened, then just one thing comes to mind. You must have another html element with the same id, so it doesn’t work there with you and here with me is normal.
– Luiz
So, it works, it closes and I opened Collapse, the problem is that the animation doesn’t work, in the div the normal animation works and in the table doesn’t, and I’ve tried in another table and another page and the animation didn’t work. I can’t say what it is, I thought it was from the tables, that Collapse didn’t work with them...
– Jedson Melo
Dude, I didn’t really read what you wrote, now I do. I researched here and I did not find answer for boostrap 3.3, there seems to be something for 4, HOWEVER, I will edit the answer to do it in hand, after all it does not need to be all with bootstrap right.
– Luiz
It even works but I don’t want the fade, I’d really like the slideToggle (which also doesn’t work doing in hand kk). I did a search and saw that with the table does not work right even, something with the height of the line...
– Jedson Melo