I'm trying to make a reference guide for a mixture of many html icons. I have the following html code:
<input id="search" type="text" placeholder="Search Icons">
<input id="submit" type="button" value="Submit!">
<input id="cancel" type="button" value="Cancel">
<div id="icon-list">
<li>
<div class="icon icon-name"></div>
<input type="text" readonly="readonly" value="name">
</li>
<li>
<div class="icon icon-name2"></div>
<input type="text" readonly="readonly" value="name2">
</li>
<li>
<div class="icon icon-name3"></div>
<input type="text" readonly="readonly" value="name3">
</li>
<!-- repeated 100 or more times -->
</div>
I'd like to be able to filter out the icons(<li>) based on the value attribute of the input inside it, preferably using fuzzy search. Is there a library or some code that can do this for me?
EDIT:
I'd like to know mainly how to implement the search from the value of the value attribute, not how to implement the fuzzy search. Example:
safeto still show if the user searches forsfae