Object doesn't support property or method 'column'
Object doesn't support property or method 'column'
Object doesn't support property or method 'column'
I get this error trying to run the following code:
var name = $("#monthFilter option:selected").text();
table.column(7).search(name).draw();
Before you tell me to read the FAQs, I did check to make sure I'm using the correct initialization of the table, that is:
var table = $('#tblForecast').DataTable();
as opposed to:
var table = $('#tblForecast').dataTable();
And still no luck. Am I missing something obvious?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Your correct, you are using it correctly.
My only thought was you are accidentally overwritting
tablevariable after initialization?Here's my entire script:
I figured it out. I have 3 separate instances of DataTables on the same page and they had conflicting code, doh! Thanks!