JSFiddle - React, Tailwind, and code Playground

by fido3993

HTML

<table>
<tr>
<td><a class="more" href="#">section</a></td>
</tr>
<tr class="hidden-row">
  <td colspan="10">Hahaha</td>
</tr>
<tr>
<td><a class="more" href="#">more</a></td>
</tr>
<tr class="hidden-row">
  <td colspan="10">Hahaha</td>
</tr>
</table>

JavaScript

$('.more').on('click',function(event){
 $(this).closest('tr').nextAll('.hidden-row').toggle();
 });