I have the following HTML (many, many rows):
<tr>
<td class="order_row"><input type="checkbox" name="data[Order][id][]" value="951"></td>
<td class="order_row">04/03/2014</td>
<td class="order_row">Test</td>
<td class="order_row">123</td>
</tr>
Anytime I click on any TD, I want to check the checkbox in that row. I have something like this:
$('.order_row').css('cursor', 'pointer').click(function() {
$(this).parent('tr').find('input').trigger('click');
});
But that's not working. Any help?