JSFiddle - React, Tailwind, and code Playground
HTML
<table id="mytable" width="100%">
<thead>
<tr>
<th>ID</th>
<th>Tester</th>
<th>Date</th>
<th>Approve</th>
<th>Deny</th>
</tr>
</thead>
<tbody>
<tr class="test">
<td class="ids">11565 </td>
<td class="tester">james</td>
<td>2012-07-02 </td>
<td><button id="Approved" type="submit" >Approved</button>
</td>
<td><button id="deny_0" type="submit" >Denied</button>
</td>
</tr>
</tbody>
</table>
JavaScript
$(function(){
$('button').on('click', function(){
var tr = $(this).closest('tr');
var id = tr.find('.ids').text();
var tester = tr.find('.tester').text();
alert('id: '+id+', tester: ' + tester);
});
});