I found and example of highlighting a row and column on hovering with mouse.
https://stackoverflow.com/a/28312853/139698
How can I make the one cell that the mouse is hovering over to a different color, but keeping the the highlighted row and column as well?
<html>
<head>
<title></title>
<style>
.hovered {
background-color: teal;
}
</style>
<script src="Scripts\jquery-3.6.0.min.js" type="text/javascript"></script>
</head>
<body>
<table border="1">
<tr>
<td>row1 col1</td>
<td>row1 col2</td>
<td>row1 col3</td>
</tr>
<tr>
<td>row2 col1</td>
<td>row2 col2</td>
<td>row2 col3</td>
</tr>
<tr>
<td>row3 col1</td>
<td>row3 col2</td>
<td>row3 col3</td>
</tr>
</table>
<script>
$(document).ready(function () {
$('td').hover(function () {
$(this).parent('tr').toggleClass('hovered');
$('td:eq(' + this.cellIndex + ')', 'tr').toggleClass('hovered');
});
});
</script>
</body>
</html>