How to alert if new record added on table?
How to alert if new record added on table?
user12
Posts: 17Questions: 4Answers: 0
I have a table when users can add new record or edit record. How to show alert message if new recors is aded on table?
script
$(document).ready( function () {
var table = $('#dataTable').DataTable( {
language: {
processing: '<span>Processing...</span>',
},
serverSide: true,
ajax: '{{ route('usersdata.query') }}',
columns: [
{ data: 'user_id' },
{ data: 'created_at' },
],
dom: 'Blfrtip',
buttons: [
{
extend: 'selectAll',
className: 'btn btn-primary rounded mx-2'
},
{
extend: 'selectNone',
className: 'btn btn-secondary rounded mx-2'
},
],
} );
Answers
If you are using Editor, you can use
create
,Colin