I have some options in a select tag and a input text box. Once user enters something in text box the related options should be displayed rest needs to be hidden.
<select size="8" style="width:150;">
<option value="something1">Apple</option>
<option value="something1">Banana</option>
<option value="something2">Mango</option>
<option value="something2">Orange</option>
<option value="something2">Papaya</option>
<option value="something3">Grape</option>
<option value="something3">Coco</option>
<option value="something3">Chocolate</option>
</select>
<input type="text" >
When I enter ap in text box, only Apple, Papaya should be visible.. Please let me know how I can achieve this by jQuery..
demo: https://so.lucafilosofi.com/narrow-down-the-select-options-from-text-search-using-jquery