AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
Comoros | KM | Delete | |
Colombia | CO | Delete | |
Cocos (Keeling) Islands | CC | Delete | |
Christmas Island | CX | Delete | |
China | CN | Delete | |
Chile | CL | Delete | |
Chad | TD | Delete | |
Central African Republic | CF | Delete | |
Cayman Islands | KY | Delete | |
Cape Verde | CV | Delete | |
Canada | CA | Delete | |
Cameroon | CM | Delete | |
Cambodia | KH | Delete | |
Burundi | BI | Delete | |
Burkina Faso | BF | Delete | |
Bulgaria | BG | Delete | |
Brunei | BN | Delete | |
British Indian Ocean Territory | IO | Delete | |
Brazil | BR | Delete | |
Bouvet Island | BV | 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)