AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
![]() |
Djibouti | DJ | Delete |
![]() |
Aland Islands | AX | Delete |
![]() |
Argentina | AR | Delete |
![]() |
United Arab Emirates | AE | Delete |
![]() |
Curaçao | CW | Delete |
![]() |
Andorra | AD | Delete |
![]() |
Albania | AL | Delete |
![]() |
Anguilla | AI | Delete |
![]() |
Angola | AO | Delete |
![]() |
Afghanistan | AF | Delete |
![]() |
Aruba | AW | Delete |
![]() |
Cyprus | CY | Delete |
![]() |
Bonaire, Sint Eustatius and Saba | BQ | Delete |
![]() |
United States | US | Delete |
![]() |
Liechtenstein | LI | Delete |
![]() |
Latvia | LV | Delete |
![]() |
Lithuania | LT | Delete |
![]() |
Poland | PL | Delete |
![]() |
Finland | FI | Delete |
![]() |
Italy | IT | 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)