Datatable inside button not clickable directly

Datatable inside button not clickable directly

arsalansiddiquiarsalansiddiqui Posts: 128Questions: 15Answers: 0
edited October 2020 in Free community support

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");
});

Answers

This discussion has been closed.