JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-3.2.1.js"></script>
<table id="grvExams">
<tr>
<td>
<div class="examAvailible" id="examAvailible">hejsan</div>
</td>
</tr>
</table>
CSS
.examAvailible
{
background-color:pink;
}
JavaScript
$(function () {
$("[id*=grvExams] td").hover(function () {
console.log('mouse hovering')
$(".examAvailible", $(this).closest("tr")).removeClass("examAvailible");
}, function () {
console.log('mouse not hovering anymore')
$(".examAvailible", $(this).closest("tr")).addClass("examAvailible");
});
});