AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
Peru | PE | Delete | |
Philippines | PH | Delete | |
Palau | PW | Delete | |
Papua new Guinea | PG | Delete | |
Puerto Rico | PR | Delete | |
Korea North | KP | Delete | |
Paraguay | PY | Delete | |
Palestinian Territory Occupied | PS | Delete | |
French Polynesia | PF | Delete | |
Qatar | QA | Delete | |
Reunion | RE | Delete | |
Rwanda | RW | Delete | |
Saudi Arabia | SA | Delete | |
Sudan | SD | Delete | |
Senegal | SN | Delete | |
Singapore | SG | Delete | |
South Georgia | GS | Delete | |
Saint Helena | SH | Delete | |
Svalbard And Jan Mayen Islands | SJ | Delete | |
Solomon Islands | SB | 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)