AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
Libya | LY | Delete | |
Sri Lanka | LK | Delete | |
Lesotho | LS | Delete | |
Macau S.A.R. | MO | Delete | |
Morocco | MA | Delete | |
Monaco | MC | Delete | |
Moldova | MD | Delete | |
Madagascar | MG | Delete | |
Maldives | MV | Delete | |
Mexico | MX | Delete | |
Marshall Islands | MH | Delete | |
Macedonia | MK | Delete | |
Mali | ML | Delete | |
Malta | MT | Delete | |
Myanmar | MM | Delete | |
Montenegro | ME | Delete | |
Mongolia | MN | Delete | |
Northern Mariana Islands | MP | Delete | |
Mozambique | MZ | Delete | |
Mauritania | MR | 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)