JSFiddle - React, Tailwind, and code Playground
by joehana
HTML
<div class="age-tag">10</div>
<table id="emp_grid" class="sofT" cellspacing="0">
<tr>
<td class="helpHed" width="65%">Select Age</td>
</tr>
<tr class="optioncolumn1">
<td><input type="checkbox" id="test" value="Twenty" />Twenty</td>
</tr>
</table>
JavaScript
$(".optioncolumn1").click(function() {
if($(this).find('input').is(':checked'))
$('.age-tag').text('20');
else $('.age-tag').text('10');
});