JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/jquery-3.2.1.js"></script>
<table id="grvExams">
<tr class="examAvailible">
<td>
<div>hejsan</div>
</td>
</tr>
</table>

CSS

.examAvailible
{
  background-color:pink;  
}

JavaScript

$(function () {
            $("[id*=grvExams] td").hover(function () {
            		console.log('mouse hovering')
                $(this).closest("tr").removeClass("examAvailible");
            }, function () {
            				console.log('mouse not hovering anymore')
                    $(this).closest("tr").addClass("examAvailible");
                });
        });