AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
Cameroon | CM | Delete | |
Canada | CA | Delete | |
Cape Verde | CV | Delete | |
Cayman Islands | KY | Delete | |
Central African Republic | CF | Delete | |
Chad | TD | Delete | |
Chile | CL | Delete | |
China | CN | Delete | |
Christmas Island | CX | Delete | |
Cocos (Keeling) Islands | CC | Delete | |
Colombia | CO | Delete | |
Comoros | KM | Delete | |
Congo | CG | Delete | |
Congo The Democratic Republic Of The | CD | Delete | |
Cook Islands | CK | Delete | |
Costa Rica | CR | Delete | |
Cote D'Ivoire (Ivory Coast) | CI | Delete | |
Croatia (Hrvatska) | HR | Delete | |
Cuba | CU | Delete | |
Curaçao | CW | Delete |
All this needs is basically
- A "post link" with e.g. a
ajax-delete
class added to signal this should be ajax-deletable. - A small JS snippet (see source code)