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