Filter options from a select element.

Filter options from a select element.

I want to filter by the name, if the string is anywhere in the option from the select statement I want it to show up in the select element. But I want it to reset to showing all of the options when they hit search and the textbox is empty. Can I have some suggestions on the best way to do this?


Edit:: Above jsfiddle no longer works, but this is the solution to the problem for anyone who finds this by searching the net.  http://jsfiddle.net/jakecigar/gj655k0m/