So I’ve been trying to monitor when my dynamic table changes in rows and tbody’s.. here’s an example of the structure:
<table id="assignedTable">
<tbody class="assigned">
<tr id="#uniquenumberhere">
</tr>
<tr>
</tr>
</tbody>
</table>
This is what I got so far.. but it doesn’t work:
$(function(){
$('#assignedTable').on('change', '.assigned', function(){
$('#assignableTbody').append("dynamic table changed");
});
})
Hope anyone can help,
Thanks in advance!
You can’t use a change event on a table. Check out the jquery documentation
Jquery Documentation on the change event
Perhaps you can try polling the table and count the table rows and see if that value changes, but this isn’t good for performance.