JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<thead>
<th>fsdfasdf</th>
<th>fsdfasdf</th>
<thead/>
<tbody>
<tr>
<td><input type="checkbox" onclick="fncTest(this);" /> </td>
<td>
<input type='hidden' name='item[]' value="1"/>
</td>
<tr>
<tr>
<td><input type="checkbox" onclick="fncTest(this);" /> </td>
<td>
<input type='hidden' name='item[]' value="2"/>
</td>
<tr>
</tbody>
</div>
</form>
JavaScript
function fncTest(element){
parent = $(element).parent().parent();
alert($(parent).find('input[name="item[]"]').val());
}