AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
Jamaica | JM | Delete | |
Italy | IT | Delete | |
Israel | IL | Delete | |
Ireland | IE | Delete | |
Iraq | IQ | Delete | |
Iran | IR | Delete | |
Indonesia | ID | Delete | |
India | IN | Delete | |
Iceland | IS | Delete | |
Hungary | HU | Delete | |
Hong Kong S.A.R. | HK | Delete | |
Honduras | HN | Delete | |
Heard Island and McDonald Islands | HM | Delete | |
Haiti | HT | Delete | |
Guyana | GY | Delete | |
Guinea-Bissau | GW | Delete | |
Guinea | GN | Delete | |
Guernsey and Alderney | GG | Delete | |
Guatemala | GT | Delete | |
Guam | GU | 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)