AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
Armenia | AM | Delete | |
American Samoa | AS | Delete | |
Antarctica | AQ | Delete | |
French Southern Territories | TF | Delete | |
Antigua And Barbuda | AG | Delete | |
Australia | AU | Delete | |
Azerbaijan | AZ | Delete | |
Burundi | BI | Delete | |
Benin | BJ | Delete | |
Burkina Faso | BF | Delete | |
Bangladesh | BD | Delete | |
Bahrain | BH | Delete | |
Bahamas The | BS | Delete | |
Bosnia and Herzegovina | BA | Delete | |
Belarus | BY | Delete | |
Belize | BZ | Delete | |
Bermuda | BM | Delete | |
Bolivia | BO | Delete | |
Brazil | BR | 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)