Hello!
How to use Javascript / jQuery to make sure that when you enter a word in the search string, the data inside the <div> filtered by the first letters? https://jsfiddle.net/0sa40u4f/
For example, we introduce the letter 'A', the following names must remain: 'Anastasia, Alexander, Andrey', the rest will disappear.
If we introduce the next letter, we get the phrase 'An', then there will be two names: 'Anastasia, Andrew'.
And so on, a filter is produced based on the available data.
Маска для поиска: <input type="text" ng-model="search" /> <div id="name"> <ul> <li> <a href="#">Анастасия</a> </li> <li> <a href="#">Александр</a> </li> <li> <a href="#">Борис</a> </li> <li> <a href="#">Андрей</a> </li> <li> <a href="#">Павел</a> </li> </ul> </div>