AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
Cayman Islands | KY | Delete | |
Cyprus | CY | Delete | |
Djibouti | DJ | Delete | |
Dominica | DM | Delete | |
Dominican Republic | DO | Delete | |
Algeria | DZ | Delete | |
Ecuador | EC | Delete | |
Egypt | EG | Delete | |
Eritrea | ER | Delete | |
Western Sahara | EH | Delete | |
Spain | ES | Delete | |
Ethiopia | ET | Delete | |
Fiji Islands | FJ | Delete | |
Falkland Islands | FK | Delete | |
Faroe Islands | FO | Delete | |
Micronesia | FM | Delete | |
Gabon | GA | Delete | |
Georgia | GE | Delete | |
Guernsey and Alderney | GG | Delete | |
Ghana | GH | 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)