I want to know how can I get all values related to a checkbox using jquery. From this picture , when a checkbox is checked all the values related to the checkbox can added to a array or alerted to user. The code of the table is as follows
<table style="border:1px solid black;">
<tbody>
<tr>
<th><input type="checkbox" id="chkAll" name="chkAll"></th>
<th>From</th>
<th>Request</th>
<th>Expires on</th>
<th>Post Date</th>
<th>Location</th>
</tr>
</tbody>
<tbody id="showtable">
<tr>
<td style="border:1px solid black;"><input type="checkbox" value="fridge" id="1" name="request[]" class="request"> </td>
<td style="border:1px solid black;"><b><a href="user/">user1</a></b></td><td style="border:1px solid black;"><b>fridge</b></td>
<td style="border:1px solid black;"><b>12-01-2015</b></td><td style="border:1px solid black;"><b>11/6/2014 2:25 pm</b></td>
<td style="border:1px solid black;"><b></b></td>
</tr>
<tr>
<td style="border:1px solid black;"><input type="checkbox" value="pizza" id="6" name="request[]" class="request"> </td>
<td style="border:1px solid black;"><b><a href="user/">user2</a></b></td><td style="border:1px solid black;"><b>pizza</b></td>
<td style="border:1px solid black;"><b>12-01-2015</b></td><td style="border:1px solid black;"><b>11/7/2014 4:31 pm</b></td>
<td style="border:1px solid black;"><b></b></td>
</tr>
</tbody>
</table>
How can I do this?If you need any other resource please let me know.