JSFiddle - React, Tailwind, and code Playground
by ian_smithz
HTML
<table border="1">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
<div id="divId" > you got me </div>
CSS
#divId{
color:red;
font-weight:bold;
background-color:black;
}
JavaScript
$("#divId").hide();
$( "td").click( function(event) {
$("#divId").show().css( {position:"absolute", top:event.pageY, left: event.pageX + 50});
});