I have a hyperlink that is supposed to delete the record from the database as soon as that is clicked from jQuery Datatable
row. My server-side code is a REST based Web Service which contains DELETE
method to perform operations.
Here is My HTML:
<a href="#" data-toggle="modal" data-target="#" title="Delete"><i class="glyphicon glyphicon-trash"></i></a>
and here is how I am getting the Click event from the hyperlink:
$('#StudentTable .glyphicon-trash').on('click', function () {
alert("Hii");
var table = $('#StudentTable').DataTable();
var data = table.row(this.closest("tr")).data();
});
I am not supposed to use an ajax call.