searchable not working
searchable not working

Actually i want to make the globally search for the specific column in the datatable, so far i was using different tech
for example bSearchable and column().search().draw method and alot more
but i am succeeded yet...
here,s my code
$('#index_table input[type=search]').on( 'keyup click', function () {
// table1.column(1)
// .search("^" + this.value, true, false, true)
// .draw();
// });
'aoColumnDefs': [
{ 'bSearchable': true, 'aTargets': [ 0 ] }
]
Answers
Hi @asifjee104 ,
I'm not clear what you're after, but hopefully this example here will help.
Cheers,
Colin
This won't work because all columns are searchable by default so it doesn't disable the others:
Don't think this will invoke an event on the default global search:
```
$('#index_table input[type=search]').on( 'keyup click', function () {
``
If you want to take over the global search input you would want to do something like this example then do the column based search:
http://live.datatables.net/jorexujo/1/edit
An alternative is to set all of the desired columns to
searchable: false
using a class. IncolumnDefs.targets
you can specify a class. See this example to turn off searching in all columns except the first:http://live.datatables.net/jefaqilo/1/edit
Kevin