I'm trying to get my first item in my jquery autocomplete selected when using categories. Now my menu looks something like this:
[category] <- autofocus selects this one
[item1] <- autofocus should select this one
[item2]
[item3]
[category]
[item4]
[item5]
etc.
What i already tried: 1. adding ui-state-disabled to my category 2. searched google how to overwrite the menu.next() function so i could detect if the item is a category 3. searched google on how to set the selected element manually including triggering the select event
So far no luck for me so i hope you guys have any suggestions ^^
fidle: http://jsfiddle.net/uynct53p/5/ (works with jquery 1.9 but not with 1.11)