Delete multiple Rows from table populated using pagination
Dear All
I want to Delete multiple Rows from a table which populated using pagination
I am using following code fo select multiple rows of a table
which is
populated using Pagination
This code is working fine
- $(document).ready(function() {
-
- $('#selectall').click(function(event) {
- alert("AA");//on click
- if(this.checked) { // check select status
- $('.checkbox1').each(function() { //loop through each checkbox
- this.checked = true; //select all checkboxes with class "checkbox1"
- });
- }else{
- $('.checkbox1').each(function() { //loop through each checkbox
- this.checked = false; //deselect all checkboxes with class "checkbox1"
- });
- }
- });
-
- });
In order to delete I am not in position to write PHP code to delete the selected rows.
A person may select All or just few rows.
I believe we need to perform there are 3 tasks
When a person Click to
delete "All selected "
- Delete the rows selected (from Data base) . I need to select the rows that are "checked" and delete them from Database
- Refresh The table after deleting the rows from Database
Note: After refresh, the deleted rows will not be displayed