Thanks very much guys for the advice - it is really usefull to me.
Apppreciate it alot.
Quick question! my code has been altered to reflect the change suggested,
like this;
$("#operator").autocomplete("auto.php",
{
delay:10,
lineSeparator: "^",
cacheLength: 10,
mat
Also, pretty sure you just did it for development purposes, but you
probably shouldn't use an alert in an autocomplete context. :P
On Mar 19, 3:32 pm, ricardobeat wrote:
> I guess the problem is this line:
>
> var ac = $("#operator")[0].autocompleter.findValue();
>
> $(..)[0] gives you the first
I guess the problem is this line:
var ac = $("#operator")[0].autocompleter.findValue();
$(..)[0] gives you the first HTML Element in the object. It's not a
jQuery object anymore, so the autocompleter property doesn't exist.
IDs should be unique so that is unneeded, try changing it to
var ac =
Thanks for the suggestion Lauri.
I have tried as asuggested and still dont see anything happening.
Didn't try it, but maybe you should use
if($Suggest == ''){
alert("we donot have any matching result");
}
I have tried this too and doesn't seem to work:
$("#operator").autocomplete("auto.php",
{
delay:10,
lineSeparator: "^",
cacheLength: 10,
matchSubset:1,
matchContains:1,
onFindValue:function(){
alert("am here");
var a
6 matches
Mail list logo