How to alert if new record added on table?

How to alert if new record added on table?

user12user12 Posts: 17Questions: 4Answers: 0
edited December 2021 in DataTables

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

Sign In or Register to comment.