O
O
Oleg2018-01-31 10:00:18
JavaScript
Oleg, 2018-01-31 10:00:18

How to search through the elements of a list?

there is a list (ul), with a bunch of elements (li).
you need to do a search on the elements in this list. those. we enter characters (word) into the input, the script after entering at least one character (or suppose three characters, how to set it?) starts searching through the elements of the list and if it finds the entered word in some element / elements, then all elements where the desired the word was not found - hide (display non).

please tell me how it can be done :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kim, 2018-01-31
@nugget-ekb

https://codepen.io/anon/pen/XZbJzN?editors=1010

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question