I have jquery datatable with 4 pages. When I load the page the click event works fine. From the second page onwards click event doesn't work. I read the http://api.jquery.com/on/ link, but I am confused making it work.
<table id="datatable">
<thead><th></th><th></th></thead>
<tbody></tbody>
</table>
$('#datatable tbody tr').find('td:gt(0):lt(9)').on("click", "", function(e) {
e.preventDefault();
e.stopPropagation.
});
The table loads as ajax client side, when I paginate the table is refreshed with new data. How to attach the click event to the next set of rows
Here is the link to jsfiddle