I have a select list with multiple items which I want to be able to filter by the text entered into some text field. This is pretty simple if you just do a js contains while iterating over each option. There are however in some cases a lot of options, so I employed jQuery:
var results = $("#myList options").find("option[text*=" + someVal.toUpperCase() + "]");
This works fine in IE, but not in Chrome and I simply cannot find out why (Firebug doesn't work at all on this page, but that's an aside.
Perhaps it's because "text" doesn't actually exist in the option html, but no searching by value fails too. Any ideas?