AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
Montserrat | MS | Delete | |
Martinique | MQ | Delete | |
Mauritius | MU | Delete | |
Malawi | MW | Delete | |
Malaysia | MY | Delete | |
Mayotte | YT | Delete | |
Namibia | NA | Delete | |
New Caledonia | NC | Delete | |
Niger | NE | Delete | |
Norfolk Island | NF | Delete | |
Nigeria | NG | Delete | |
Nicaragua | NI | Delete | |
Niue | NU | Delete | |
Nepal | NP | Delete | |
Nauru | NR | Delete | |
New Zealand | NZ | Delete | |
Oman | OM | Delete | |
Pakistan | PK | Delete | |
Panama | PA | Delete | |
Pitcairn Island | PN | 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)