AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
Afghanistan | AF | Delete | |
Aland Islands | AX | Delete | |
Albania | AL | Delete | |
Algeria | DZ | Delete | |
American Samoa | AS | Delete | |
Andorra | AD | Delete | |
Angola | AO | Delete | |
Anguilla | AI | Delete | |
Antarctica | AQ | Delete | |
Antigua And Barbuda | AG | Delete | |
Argentina | AR | Delete | |
Armenia | AM | Delete | |
Aruba | AW | Delete | |
Australia | AU | Delete | |
Austria | AT | Delete | |
Azerbaijan | AZ | Delete | |
Bahamas The | BS | Delete | |
Bahrain | BH | Delete | |
Bangladesh | BD | Delete | |
Barbados | BB | 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)