JSFiddle - React, Tailwind, and code Playground
by Павел KLON
HTML
<script src="https://code.jquery.com/jquery-3.4.1.slim.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css">
<input type="text" name="" id="nval" value="8">
<table class='example table table-bordered'>
<thead>
<tr>
<td>Имя</td>
<td>Фамилия</td>
<td>Должность</td>
<td><input type="text" class="hours"></td>
</tr>
</thead>
<tbody>
<tr>
<td>Павел</td>
<td>Павлов</td>
<td>ТЫЖпрограммист</td>
<td><input type="text" class="hours"></td>
</tr>
<tr>
<td>Павел</td>
<td>Дуров</td>
<td>миллионер</td>
<td><input type="text" class="hours"></td>
</tr>
</tbody>
</table>
JavaScript
$("#nval").change(function () {
var nval = $("#nval").val();
if($(".hours").val == )
});