Add a new row after a selected row in DataTables

Add a new row after a selected row in DataTables

user1212user1212 Posts: 6Questions: 0Answers: 0
edited March 2014 in General
DataTable is defined as

[code]
var oTable = $('#table1').dataTable({
'aaData': [
['John', 'ABC', '$90000'], ['Doe', 'XYZ', '$100000'], ['Alan', 'PQR', '$110000']
],
'aoColumns': [
{'sTitle': 'Name'}, {'sTitle': 'Company'}, {'sTitle': 'Salary'}
]
});
[/code]
An empty row is added as
[code]
oTable.fnAddData([' ', ' ', ' ']);
[/code]

How do I add the empty row after the selected row and not to the end of the table (by default)
This discussion has been closed.