i'm using the jquery ui autocomplete plugin
https://jqueryui.com/autocomplete/
After I select an item from the autocomplete.
I call the selected value value using ui.item.value and the works fine.
For example my autocomplete is show last names:
Johnnson
Smith
Williams
When I select Williams ui.item.value returns Williams .
How do I get the index of the item i selected? Anyone know the syntax
So if I select Williams from the 3 last names that show up i want the index for the 3rd item, which i believ is 2.