AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
Sierra Leone | SL | Delete | |
Singapore | SG | Delete | |
Sint Maarten (Dutch part) | SX | Delete | |
Slovakia | SK | Delete | |
Slovenia | SI | Delete | |
Solomon Islands | SB | Delete | |
Somalia | SO | Delete | |
South Africa | ZA | Delete | |
South Georgia | GS | Delete | |
South Sudan | SS | Delete | |
Spain | ES | Delete | |
Sri Lanka | LK | Delete | |
Sudan | SD | Delete | |
Suriname | SR | Delete | |
Svalbard And Jan Mayen Islands | SJ | Delete | |
Swaziland | SZ | Delete | |
Sweden | SE | Delete | |
Syria | SY | Delete | |
Taiwan | TW | Delete | |
Tajikistan | TJ | 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)