Hi I am facing some issue with KTDatatable dropdown edit for each row, datatable.on(‘click’, is not picking my click event, please help.
The click event is from bootstrap dropdown,
我的代码如下 //Datatable code var KTDatatableRecordSelectionDemo = function() { //..... //..... columns: [{ }, //..... { field: 'Actions', title: 'Actions', template: function(row) { return '\\\\\\ Organization Details\class="dropdown-item" href="#"> Location and contact detials\ Tax settings and bank details\ Access rights \class="dropdown-item" href="#" id="one_another">个人资料图片和打印徽标\\\';},}]
and here below the init datatable function
var localSelectorDemo = function() {
var datatable = $('#organizations').KTDatatable(options);
//....
//....
datatable.on('click', '#form_organisation_details', function() {
var dataId = $(this).attr("data-id");
console.log(dataId);
}
}
}