I have dropdown list (HTML select element) which simply contains a heap of dollar amounts. E.g.
$50,000
$100,000
$150,000
$200,000
and so on..
An example of one of the option elements inside it would be:
<option value="150000">$150,000</option>
I want the user to be able to start typing in 1..5..0.. and get it to auto-jump down to the $150,000 item - this works fine natively in most browsers if I didn't have any $ symbol in my innerhtml. But because all of my innerhtml descriptions are prefixed with a $ sign, the keyboard shortcuts are all identical, so effectively useless.
I'm assuming there is no simple way in raw HTML to specify that the keyboard shortcuts should be obtained from the corresponding value attribute, rather than the innerhtml text?
So what would be the cleanest jquery snippet to achieve this?