JSFiddle - React, Tailwind, and code Playground
by rajaadil
HTML
<table id="gvrecords" 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>
CSS
.highlightRow{
background-color:grey;
}
JavaScript
$(document).ready(function() {
$('#gvrecords tr').mouseenter(function() {
$(this).addClass('highlightRow');
}).mouseout(function() {
$(this).removeClass('highlightRow');
})
})