Dynamically updating an element outside of my datatable with the total amount of found records
Dynamically updating an element outside of my datatable with the total amount of found records
Hi there,
I'm using datatables with ajax that pulls from a php page that then pulls from MySQL to load the data. Everything works great! The only question I have is since I have the ability to dynamically delete rows from the table, I'd like to update a field elsewhere on the page with the up-to-date total number of records found (not the total number that are currently showing, but all the records). Basically the same thing as the "40" in the "showing 10 of 40 records") text that appears at the bottom. Forgive my ignorance, but how can I update another piece of data on my page with that total number?
Thanks!
I'm using datatables with ajax that pulls from a php page that then pulls from MySQL to load the data. Everything works great! The only question I have is since I have the ability to dynamically delete rows from the table, I'd like to update a field elsewhere on the page with the up-to-date total number of records found (not the total number that are currently showing, but all the records). Basically the same thing as the "40" in the "showing 10 of 40 records") text that appears at the bottom. Forgive my ignorance, but how can I update another piece of data on my page with that total number?
Thanks!
This discussion has been closed.