var oTable;;
$(document).ready(function() {
oTable = $('.dataTable').dataTable();
} );
/* Add a click handler for the delete row */
$('#moveToTable2').click( function() {
oTable.dataTableExt.iApiIndex=0;
var nTr = oTable.fnGetData(this);
oTable.fnDeleteRow( nTr );
oTable.dataTableExt.iApiIndex=1;
oTable.fnAddRow( nTr );
} );
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.