Two tables both sharing same thead content..
Two tables both sharing same thead content..
nickyyo
Posts: 4Questions: 0Answers: 0
I'm calling the two tables via attaching variables for the data and column names, the data works but the column names are repeated in the second table..
"aaData": tableDataa.data,
"aoColumns": tableData.displayFields
Any help will be appreciated, thanks in advance :)
"aaData": tableDataa.data,
"aoColumns": tableData.displayFields
Any help will be appreciated, thanks in advance :)
This discussion has been closed.
Replies
Allan
I've put the [code]dataTable()[/code] within a function, so that I can call it twice but with different values passed through. [code]tableData.displayField[/code]s variable contains all the coulmns header names and the [code]tableDataa.data[/code] has all the values for those headers columns.
The problem is, the second tables header column names are the same as the first table column names.. I've debugged the code and the correct values are being passed through but its not updating on the datatables even though the values for those columns changes successfully. Hope that makes sense.