First of all, I apologize if I've posted this in the wrong forum. If so, could a moderator please move it.
Now to my dilemma. I am trying to develop a textbox and a dropdown, where the value of the textbox is dependent on the option selected from the dropdown.
For the dropdown I wanted to use the autocomplete feature and found a widget that does it (from here: Link)
The problem I face is that when using the autocomplete widget, on selecting an option, it is not triggering an onchange event in the select (dropdown). And I need this onchange event for my textbox to be filled in.
There is also a button on the page, which lets you the original select box.
I have put the code for my page below. I'm also using some CSS which I have added at the end.