0
I’m creating a conventional table, which when clicked on in the group name it shows a sub-table containing the same columns and refactoring the results:
NORMAL STATE:
GRUPOS QUANTIDADE
| GA | | 1000 |
| GB | | 1600 |
WHEN CLICKED ON THE GROUP TITLE:
GRUPOS QUANTIDADE
| GA | | 1000 |
| CLI01 | | 500 |
| CLI02 | | 500 |
| GB | | 1600 |
| CLI01 | | 800 |
| CLI02 | | 800 |
FROM A TABLE STRUCTURE BELOW, WHAT IS NECESSARY TO APPLY IN ORDER FOR THE SUB-TABLES TO APPEAR AND FOR THEM TO HAVE THIS 'SHOW/HIDE' EFFECT'?
<table class="table table-striped">
<thead>
<tr>
<th>GRUPOS</th>
<th>QUANTIDADE</th>
</tr>
</thead>
<tbody>
<tr>
<td>GA</td>
<td>1000</td>
</tr>
<tr>
<td>GB</td>
<td>1600</td>
</tr>
</tbody>
</table>
It’s exactly what I need. I’m just not getting the snippets you’ve commented on on a page that works. What goes inside <script> </script>? Where do I put the ". show{ display: None; }"
– Rafael Brito
I got :) thank you very much.
– Rafael Brito