i want call index row by checkbox

i want call index row by checkbox

ballprogrammerballprogrammer Posts: 11Questions: 0Answers: 0
edited June 2013 in DataTables 1.8
[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]

Replies

  • allanallan Posts: 61,433Questions: 1Answers: 10,049 Site admin
    edited June 2013
    Try using `Table00.fnDeleteRow( $(this).parents('tr')[0] );`

    Allan
  • ballprogrammerballprogrammer Posts: 11Questions: 0Answers: 0
    this line error
    [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
This discussion has been closed.