hi all.. i have a datatable which connected to DB... i want make the data inside datatable can be edit and delete... but of course,,after make change at datatable the data inside DB also change..
what's code to do that...??i've been try like this:
$("#datalist tbody").click(function(event) {
$(oTable.fnSettings().aoData).each(function(){
$(this.ntr).removeClass("row_selected");
});
$(event.target.parentNode).addClass("row_selected");
});
i'm newbie at datatable..that code is what i've been reach..and i dont know how to delete data..
1. i can edit/delete data after click at <tbody>
2. show option to edit/delete data
3. if choose delete show (are you sure to delete this data?)
4. the script connected to DB (so we can control DB data)
5. data at DB updated