own function on all selected datas
own function on all selected datas
stefan kruessmann
Posts: 4Questions: 3Answers: 0
I would like to execute an own (PHP) funtion on all rows in the table (best on a button click)
How to do so best?
Thx
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Since you want to do this with PHP. Do you mean on the server? If so you would need to send the data table to the server first using an ajax call for example and then do whatever you need to do.
If you want to do this on the client side check the api please (Javascript).
https://datatables.net/reference/api/rows().every()
This thread will give you some hints on how to send the entire data table to the server:
https://datatables.net/forums/discussion/comment/168298/#Comment_168298