How to Delete a Row with DataTables Plugin?
Posted
by chobo2
on Stack Overflow
See other posts from Stack Overflow
or by chobo2
Published on 2010-05-17T05:11:35Z
Indexed on
2010/05/17
5:20 UTC
Read the original article
Hit count: 270
jQuery
|jquery-plugins
Hi
I am trying to delete a row using the DataTables plugin. First I don't get the example at all.
What I have this is a user checks the row they want to delete. I do this then
var row = $('#id :checked').parents('tr');
So I get the row of the checked checkbox. Lets assume they only check one box( if multiple where choose it might be different - might need a jquery each loop).
I then try to do this
var position = GlobalVariable.fnGetPosition(row);
GlobalVariable.fnDeleteRow(position);
position is always null and So I have no clue how to do this.
© Stack Overflow or respective owner