AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
Bangladesh | BD | Delete | |
Barbados | BB | Delete | |
Belarus | BY | Delete | |
Belgium | BE | Delete | |
Belize | BZ | Delete | |
Benin | BJ | Delete | |
Bermuda | BM | Delete | |
Bhutan | BT | Delete | |
Bolivia | BO | Delete | |
Bonaire, Sint Eustatius and Saba | BQ | Delete | |
Bosnia and Herzegovina | BA | Delete | |
Botswana | BW | Delete | |
Bouvet Island | BV | Delete | |
Brazil | BR | Delete | |
British Indian Ocean Territory | IO | Delete | |
Brunei | BN | Delete | |
Bulgaria | BG | Delete | |
Burkina Faso | BF | Delete | |
Burundi | BI | Delete | |
Cambodia | KH | 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)