i wanna ask you how to make edit function (edit row in data table, then press button) like this in my case. Dont need py update functions only frond end and a bit js(ajax) code for sending data. Picture bellow
My data table look like this.
My js code, then press edit button and just asking "Are you sure" and take data table row data.
$('#calEvents').on( 'click', 'button[name="edit"]', function () {
var data = table.row( $(this).parents('tr') ).data();
var confirmalert = confirm("Are you sure?");
if (confirmalert == true) {
}else{
alert('Invalid ID.');
}
});
If you help me i will be very gratefull, because now im stuck and idk how to start it. If u need some information ask me in comments. Thank you for your time.