AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
Hong Kong S.A.R. | HK | Delete | |
Hungary | HU | Delete | |
Iceland | IS | Delete | |
India | IN | Delete | |
Indonesia | ID | Delete | |
Iran | IR | Delete | |
Iraq | IQ | Delete | |
Ireland | IE | Delete | |
Israel | IL | Delete | |
Italy | IT | Delete | |
Jamaica | JM | Delete | |
Japan | JP | Delete | |
Jersey | JE | Delete | |
Jordan | JO | Delete | |
Kazakhstan | KZ | Delete | |
Kenya | KE | Delete | |
Kiribati | KI | Delete | |
Korea North | KP | Delete | |
Korea South | KR | Delete | |
Kosovo | XK | 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)