autocomplete filter

autocomplete filter

pearly_030pearly_030 Posts: 42Questions: 0Answers: 0
edited August 2011 in General
Hi,

On my site, the input filter is an autocomplete input field.
[code]

......
$("#sitedepart").change( function() { oTable2.fnDraw(); } );
....
$(function()
{
$( "#sitedepart" ).autocomplete({
source: sitesReferences
});
});
....

.....




[/code]

My problem is that the unique character I write in this field is using to filter the table.
I want the full selected value in source (sitesReferences) to filter.

In sitesReferences there is, for example, Jquery.
When I write "q" the filter is "q" and not "Jquery" when I select it.

I don't find. :-(
Thanks.
This discussion has been closed.