JSFiddle - React, Tailwind, and code Playground
by shaneblake
HTML
<table>
<tr>
<td style="white-space: nowrap;">
<input id="TreeView1n10CheckBox" type="checkbox" checked="checked" name="TreeView1n10CheckBox">
<a id="TreeView1t10" onclick="TreeView_SelectNode(TreeView1_Data, this,'TreeView1t10');" href="javascript:__doPostBack('TreeView1','sPreAnalytical\\Test Requisitions\\2 Specimens: 1 Req')" class="TreeView1_0">2 Specimens: 1 Req</a>
</td>
</tr>
</table>
JavaScript
$(function() {
$('table input:checkbox').click(function() {
if ($(this).prop('checked')) {
$(this).next('a').text('this is new text');
}
});
});