column().search() returns not a javascript String
column().search() returns not a javascript String
wshenk
Posts: 2Questions: 0Answers: 0
I found column().search() returns like a JQuery object, rather than a javascript String which mentioned in doc https://datatables.net/reference/api/column().search(). Please correct me if wrong.
So how to get the string in searching? Thanks.
This discussion has been closed.
Replies
In this test case
column().search()
returns a string:http://live.datatables.net/qisoyogu/1/edit
Are you doing something different?
Kevin
Hi @wshenk ,
Note there's a getter (returns string) and a setter (returns DataTables API instance) for
columns().search()
- so I just suspect you're doing a setter. See Kevin's updated example here : http://live.datatables.net/qisoyogu/4/editCheers,
Colin
Hi Kevin,
Thanks for your quick response.
It's my bad. I'm using function dataTable.columns() which is incorrect in my case, it should be dataTable.column() without 's'.
The column().search() returns a String, this is expected.