Unhighlight first highlighted item from AutoComplete
问题 Here I am using p:autoComplete tag in PrimeFaces 5.1, but I can't remove first highlighted/selected item from the suggestions list. How I can remove this ? 回答1: Since your "problem" comes from this particular line, firstItem.addClass('ui-state-highlight'); What happens here is when the suggestions are ready to show up the script highlights the first item of the list, so in your case you would just "unhighlight" that item. I have created a small function that would do that on every