Getting the value of item 1 of an autocomplete list box
Hi
I'm trying to get the value of the first item of the autocomplete suggestion in my search function. Unfortunately, my JQuery isn't strong enough to work it out. Can anyone give me any pointers? I would actually like the value stored behind the scenes and not the display text if that's possible.
I've got something like:
var result=$(".ui-autocomplete li:first").find("a:first").get();
but it's not working.
Thanks in advance.