Title: Multiple Delete from data grid Post by: AJLX on July 03, 2018, 12:41:29 PM Hey guys,
I have the option to delete records from a datagrid. It gets a bit tedious when it comes to deleting multiple records. I have set the datagrid up with check boxes to appear, and can multi select them. The next part is where I get stuck. Is there a way that I can put the values into an array and send via AJAX to a php file? Could you help me with that? Thanks, EDIT: So far I have tried to reuse a function found in one of the tutorials: Code: function test() { This seems like it should work, but the alert box is empty. If I could fill it, I could then use the loop to do multiple AJAX calls, unless there is a more sensible way? Title: Re: Multiple Delete from data grid Post by: AJLX on July 03, 2018, 03:37:42 PM I've solved this! I'm sure there is a more efficient way to do it though. My code is here in case it helps anyone else out
Code: function destroyProject(){ |