So I have some funcitonality on my site that has led me to want either one or the other's functionality in a drop down. Let me explain it so you can understnad more, and maybe even suggest another solution altogether.
I have a autocomplete search bar where if the user selects an item in the drop down, it forwards to one url. If a user types in a unique entry, where the item does not exist, then it goes to another location.
Currently, if a user types and presses enter (without using the keyboard to select the item), it acts as though you entered an unique entry. SO, how would you have functionality where (similar to facebook) as you are typiung, the first item is selected until the words you type no longer match that item. This reduces that step of the user having to press down on the keyboard to select the item, as it already by default selects the first item.
Now if this is not possible, ther'es another solution. Disable the "enter" button altogether and ensure that the user selects an item from the menu. That means I need at least ONE dynamically generated item in the menu that mirrors what the user is typing. So as the user is typing "california", the last item in the drop down menu is showing "Create: california".
Are these solutions possible? Is there a better solution?
your solution was working good untill I ran my application on the Windows 7 IE8 version. It is still woking good in all browsers except the IE 8 on Windows 7. It's just not setting the first item of menu. please let me know if there is any fix available for this.
nice autofocus features, but in my case, i use the custom data display, and i need to auto select the fist item suggested in the list but NOT to reflect it in the input field. The user have to click / move with key/ type Enter Key to select an item.
Because with the autofocus feature, the user can not anymore type in the input search field and i think it is too bad.