JSFiddle - React, Tailwind, and code Playground

by Shaunak Deshpande

HTML

<table class="faqs" style="width:100%">
    <tr>
        <td class="qs"><span>1. How does LenDen Work?</span>
        </td>
        <td class="ans">This is an example Answer with more Length testing.</td>
    </tr>
    <tr>
        <td class="qs"><span>2. Different modes of transaction?</span>
        </td>
        <td class="ans">Answer</td>
    </tr>
</table>

JavaScript

jQuery(document).ready(function () {
    jQuery(".qs").click(function () {
        jQuery(".qs").siblings(".ans").fadeOut(600);
        jQuery(this).siblings(".ans").fadeIn(600);
    });
});