if we selected a row and clicking button that should be deleted from database in MVC with jquery
if we selected a row and clicking button that should be deleted from database in MVC with jquery
murali_krishna12345
Posts: 1Questions: 0Answers: 0
if we select a row from data table and click on the button that row should be deleted from database in mvc with jquery,
thanx in adv
js--------------------
$('document').ready(function()
{
$("#tbl_1234 tbody tr").click(function (e) {
debugger;
if ($(this).hasClass('row_selected')) {
$(this).removeClass('row_selected');
}
else {
tabledata.$('tr.row_selected')//.removeClass('row_selected');
$(this).addClass('row_selected');
}
});
/* Add a click handler for the delete row */
$('#btnremove').click(function () {
debugger;
var anSelected = fnGetSelected(tabledata);
if (anSelected.length !== 0) {
tabledata.fnDeleteRow(anSelected[0]);
}
});
});
how could i do?
This discussion has been closed.