i want call index row by checkbox
i want call index row by checkbox
ballprogrammer
Posts: 11Questions: 0Answers: 0
[code]
var Table00 = $('#Table00').dataTable({
"aaData": aaData,
"aoColumns": aoColumns,
"aoColumnDefs": [
{
aTargets: [0],
fnRender: function (o, v) {
return '';
},
sClass: 'CallCheckbox'
}
]
});
$("#btn_delete").click(function () {
$.each($('.CallCheckbox :checked'),function(index,dom){
alert(d[0]);
//Table00.fnDeleteRow(parseInt(d.parent?));
});
});
[/code]
i want call row index by multi checkbok
this line error
[code]
alert(d[0]);
//Table00.fnDeleteRow(parseInt(d.parent?));
[/code]
var Table00 = $('#Table00').dataTable({
"aaData": aaData,
"aoColumns": aoColumns,
"aoColumnDefs": [
{
aTargets: [0],
fnRender: function (o, v) {
return '';
},
sClass: 'CallCheckbox'
}
]
});
$("#btn_delete").click(function () {
$.each($('.CallCheckbox :checked'),function(index,dom){
alert(d[0]);
//Table00.fnDeleteRow(parseInt(d.parent?));
});
});
[/code]
i want call row index by multi checkbok
this line error
[code]
alert(d[0]);
//Table00.fnDeleteRow(parseInt(d.parent?));
[/code]
This discussion has been closed.
Replies
Allan
[code]
alert(d[0]);
[/code]
i try from you change to
[code]
alert(Table00.fnGetPosition($(d).parents('tr')[0]));
[/code]
is ok
thank you allan