AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
Korea North | KP | Delete | |
Korea South | KR | Delete | |
Kuwait | KW | Delete | |
Cayman Islands | KY | Delete | |
Kazakhstan | KZ | Delete | |
Laos | LA | Delete | |
Lebanon | LB | Delete | |
Saint Lucia | LC | Delete | |
Liechtenstein | LI | Delete | |
Sri Lanka | LK | Delete | |
Liberia | LR | Delete | |
Lesotho | LS | Delete | |
Lithuania | LT | Delete | |
Luxembourg | LU | Delete | |
Latvia | LV | Delete | |
Libya | LY | Delete | |
Morocco | MA | Delete | |
Monaco | MC | Delete | |
Moldova | MD | Delete | |
Montenegro | ME | 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)