Exact search in datatable dropdown
Exact search in datatable dropdown
I have a simple table with tree rows.I have a dropdown have three values (Apartment,Loft apartment,Hotel apartment).
When i select Apartment it show me Loft apartment also. I know that there is some text matches,i want to search exact complete text..
I tried this but no luck
oTable.fnFilter( "^"+this.value+"$", $(this).attr('id') , true);
here is my html
http://jsfiddle.net/D4xZy/
Here is my code
$("#tbl thead select").change( function () {
oTable.fnFilter( this.value, $(this).attr('id') );
});
When i select Apartment it show me Loft apartment also. I know that there is some text matches,i want to search exact complete text..
I tried this but no luck
oTable.fnFilter( "^"+this.value+"$", $(this).attr('id') , true);
here is my html
http://jsfiddle.net/D4xZy/
Here is my code
$("#tbl thead select").change( function () {
oTable.fnFilter( this.value, $(this).attr('id') );
});
This discussion has been closed.