I am trying to micmic teh behaviour of a simple HTML SELECT element with jQuery Ui Autocomplete.
Is it possible to set the active item (move focus) on the open event? Basically, I am trying to mimic the selected=”selected” option from a html select element – if the value in the field matches with one from the list, make that list item ‘selected’.
Well, I finally figured out the answer with the help of a friend.
Here’s the JSBin for it: http://jsbin.com/unibod/2/edit#javascript
Works perfect! 🙂