fnAddData + fnGetNodes

fnAddData + fnGetNodes

foimystfoimyst Posts: 10Questions: 0Answers: 0
edited March 2011 in General
in conjunction on the posts http://datatables.net/forums/comments.php?DiscussionID=2977&page=1#Item_7 and http://datatables.net/forums/comments.php?DiscussionID=3263&page=1#Item_3

how can i get rows in fnGetNodes()... so that i can use fnDeleteRow() rather than remove...
[code]


Tester

@import "css/demo_page.css";
@import "css/demo_table.css";




var oTable;

$(document).ready(function() {
$('#example td a.delete').click(function(){
$(this).parent().parent().remove();
});

oTable = $('#example').dataTable();
} );

function addRow() {
oTable.fnAddData( [
$('#name').val(),
$('#units').val(),
$('#description').val(),
"remove" ] );
$('#name').val("");
$('#units').val("");
$('#description').val("");
}






Name : No of Units : Description :




Name
Units
Description








[/code]

i try removing a row using remove but when i fnAddRow() it pops up again....
This discussion has been closed.