AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
India | IN | Delete | |
British Indian Ocean Territory | IO | Delete | |
Iran | IR | Delete | |
Iraq | IQ | Delete | |
Iceland | IS | Delete | |
Israel | IL | Delete | |
Jamaica | JM | Delete | |
Jersey | JE | Delete | |
Jordan | JO | Delete | |
Japan | JP | Delete | |
Kazakhstan | KZ | Delete | |
Kenya | KE | Delete | |
Kyrgyzstan | KG | Delete | |
Cambodia | KH | Delete | |
Kiribati | KI | Delete | |
Korea South | KR | Delete | |
Kuwait | KW | Delete | |
Laos | LA | Delete | |
Lebanon | LB | Delete | |
Liberia | LR | 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)