JamieAppleseed/selectToAutocomplete — Issue #22: Selected attribute incorrect when 2 or more options have the same value
Author: EpicCombover
Created: 2011-11-29 22:14:02+00:00
State: open

Using the demo HTML, I added an extra option for APO/FPO with the value of US to the select like so:

United States

APO/FPO

Afghanistan

Åland Islands

Using jQuery to find the selected option outputs the incorrect country:
$("#country-selector").find(':selected').text();

Expected: United States
Actual: APO/FPO

When I turn off selectToAutocomplete, I get the expected results.