Delete selected row from table

Delete selected row from table

Swaraj23Swaraj23 Posts: 2Questions: 1Answers: 0

I am trying to delete the selected row from the table
My code is :

var oTable = jQuery("#tableId").dataTable();
jQuery("#tableId tbody').on( 'click','.delete', function (e) {
e.preventDefault();
oTable.row(jQuery(this).parents('tr')).remove().draw( false );

} );

Error I am getting :

'undefined' is not a function (evaluating 'oTable.row('.deleteNow')');

This discussion has been closed.