Hi all!
I have two functions, one which calls the other (here simplified) that are part of an autocomplete process. The scripts run without error, however the part I am posting here returns "undefined" for one of my variables. The alert in the function findValue() returns the correct "thisID" in the alert, however the function fillCodes() that called it returns "undefined" in its alert:
function findValue(li) {
if( !!li.extra ) var thisID = li.extra[0];
alert(thisID);
return thisID;
}
function fillCodes() {
var oSuggest = $("#my_input_field")[0].autocompleter;
var thisID = oSuggest.findValue();
alert(thisID);
}
Anybody have a clue?
Sandra