I\'m trying to have two autofilling textboxes, one for a phone model - input1 and one for firmware - input2 on the same page. When both filled I want a div to be shown with the
It's probably a scoping problem. Try adding this to the top of your script:
var phone; var phoneid;
The subsequently omit the var
var
phone = li.selectPhone;