AJAX Buttons: Deleting in tables
Click on the Delete button and see the row disappear if successful.
Name | Iso2 | Actions | |
---|---|---|---|
Sierra Leone | SL | Delete | |
El Salvador | SV | Delete | |
San Marino | SM | Delete | |
Somalia | SO | Delete | |
Saint Pierre and Miquelon | PM | Delete | |
Serbia | RS | Delete | |
Sao Tome and Principe | ST | Delete | |
Suriname | SR | Delete | |
Swaziland | SZ | Delete | |
Seychelles | SC | Delete | |
Syria | SY | Delete | |
Turks And Caicos Islands | TC | Delete | |
Chad | TD | Delete | |
Togo | TG | Delete | |
Thailand | TH | Delete | |
Tajikistan | TJ | Delete | |
Tokelau | TK | Delete | |
Turkmenistan | TM | Delete | |
Tonga | TO | Delete | |
Trinidad And Tobago | TT | 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)