I have a list of letters and I want to filter out any values that contain the text entered by the user in a textbox.
Here is the design:
Search List:
<input type="text" id="txtSearch" />
<ul>
<li>Coffee1</li>
<li>Coffee2</li>
<li>Tea1</li>
<li>Tea2</li>
<li>Milk1</li>
<li>Milk2</li>
</ul>
For example:
If the user enters 'k1' in the textbox, I want to only display Milk1 & Milk2
.
How can this be achieved?
Any help solving this would be greatly appreciated!