Issue adding table row

Issue adding table row

vmicchiavmicchia Posts: 3Questions: 0Answers: 0
edited June 2012 in General
Having a problem adding a row to the table. when I try to add the row I get this error:
[quote]Uncaught TypeError: Cannot read property 'aoData' of null[/quote]
The function I'm using is this:
[code]$('#myTable'+t).dataTable().fnAddData( [
'',
$('#eclipseid').val(),
"",
"",
"",
"",
"",
'',
''
] );[/code]

The blank rows are to keep the amount of rows because in this case I don't need anything in them. I'm using version 1.9.1. Also as a related question on some of the tags I added classes when creating the table. Will those automatically be kept track off (they are numbered) or is there a way I can add those manually to this new row?

Thank you.

Replies

This discussion has been closed.