Is it possible to use jquery to filter select options to only show options with a certain value? Say I had this:
var testArray = ["foo", "bar"];
<select id="dropdown">
<option>bar</option>
<option>baz</option>
<option>foo</option>
</select>
After my script executes, I'd like to be left with the following:
<select id="dropdown">
<option>bar</option>
<option>foo</option>
</select>