Datatable search box is getting binded properly to first table and not second table
Datatable search box is getting binded properly to first table and not second table
Harsh Damania
Posts: 8Questions: 4Answers: 0
Hi All,
I am facing this strange issue, my datatable search box is working fine for first table and not working for second table.
I am using this function for some reason, i belive it is because of this ?
```
$(".dataTables_filter input")
.unbind() // Unbind previous default bindings
.bind("input", function (e) { // Bind our desired behavior
if (this.value == "") {
table.search("").draw();
} else {
table.search(this.value).draw();
}
return;
});
```
This discussion has been closed.