JSFiddle - React, Tailwind, and code Playground

by BenjaminRH

HTML

<table id="pageTable" width="100%">
    <td><a href="#" id="yourLink">ABC</a></td>
</table>

<div id="xyz">Hidden content</div>

CSS

#xyz { display: none; }

table { background-color: red; }

JavaScript

$("#yourLink").click(function() {
    $("#xyz").show(); /* Show the div whose id is "xyz" */
    $("#pageTable").width("60%"); /* Now change the width of the table to 60% */
});