AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
New Caledonia | NC | Delete | |
Niger | NE | Delete | |
Norfolk Island | NF | Delete | |
Nigeria | NG | Delete | |
Nicaragua | NI | Delete | |
Netherlands The | NL | Delete | |
Norway | NO | Delete | |
Nepal | NP | Delete | |
Nauru | NR | Delete | |
Niue | NU | Delete | |
New Zealand | NZ | Delete | |
Oman | OM | Delete | |
Panama | PA | Delete | |
Peru | PE | Delete | |
French Polynesia | PF | Delete | |
Papua new Guinea | PG | Delete | |
Philippines | PH | Delete | |
Pakistan | PK | Delete | |
Poland | PL | Delete | |
Saint Pierre and Miquelon | PM | 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)