How to get a hidden Id to delete a record in a jQuery Datatable
问题 I have Edit and Delete buttons in my jQuery DataTable. The first column is a record ID column and is hidden. I have event handlers for the Edit and Delete buttons. Should I rather use the event handler for the DataTable click and tr function to get the id, or if using the button event handlers (preferable), how can I get the Id from the row? i.e. identify which row was clicked on? const dataTable = $('#personTable').DataTable({ data: serializedObject, columns: [ { data: 'ID', 'visible': false