I'm using jquery.panzoom to contain a table.
Each table cell is in this form:
<td><div class="cell" id="cell-24-14"></div></td>
The table is created dynamically, so I use this to try and catch an event:
$('.cell').on('click', function (e) {
alert($(this).attr('id'));
});
I've tried removing the divs, and catching the clicks on the td's directly, but this didn't work as well.
When I'm catching clicks on any div, I see that the containers of the table are catching the clicks, but the clicks never get to the table itself (and not to its cells).
How do I catch click events on an individual div inside a td (or even a td)?