AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
Honduras | HN | Delete | |
Hong Kong | HK | Delete | |
Indien | IN | Delete | |
Indonesien | ID | Delete | |
Irak | IQ | Delete | |
Iran, Islam | IR | Delete | |
Irland | IE | Delete | |
Island | IS | Delete | |
Isle Of Man | IM | Delete | |
Israel | IL | Delete | |
Italien | IT | Delete | |
Jamaika | JM | Delete | |
Japan | JP | Delete | |
Jemen | YE | Delete | |
Jersey | JE | Delete | |
Jordanien | JO | Delete | |
Kaimaninseln | KY | Delete | |
Kambodscha | KH | Delete | |
Kamerun | CM | Delete | |
Kanada | CA | 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)