Datatable inside button not clickable directly
Datatable inside button not clickable directly

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
I have button in columns that only works when i mention id of datatable:
$('#table_id').on('click', 'button', function(){
$(this).text("Viewed");
});
and when i try to click on button directly it do nothing:
$('#button_id').on('click', 'button', function(){
$(this).text("Viewed");
});
This discussion has been closed.
Answers
See this example and this FAQ for more infomration.
Kevin