AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
![]() |
Italy | IT | Delete |
![]() |
Iceland | IS | Delete |
![]() |
Iran | IR | Delete |
![]() |
Iraq | IQ | Delete |
![]() |
British Indian Ocean Territory | IO | Delete |
![]() |
India | IN | Delete |
![]() |
Man (Isle of) | IM | Delete |
![]() |
Israel | IL | Delete |
![]() |
Ireland | IE | Delete |
![]() |
Indonesia | ID | Delete |
![]() |
Hungary | HU | Delete |
![]() |
Haiti | HT | Delete |
![]() |
Croatia (Hrvatska) | HR | Delete |
![]() |
Honduras | HN | Delete |
![]() |
Heard Island and McDonald Islands | HM | Delete |
![]() |
Hong Kong S.A.R. | HK | Delete |
![]() |
Guyana | GY | Delete |
![]() |
Guinea-Bissau | GW | Delete |
![]() |
Guam | GU | Delete |
![]() |
Guatemala | GT | 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)