D
D
Daniil2018-05-22 13:36:04
JavaScript
Daniil, 2018-05-22 13:36:04

How to change the color of a part of a word when searching?

Good afternoon. There is input. We enter text, for example "Moscow" and there is an absolute block with a list of similar cities found, that is, it will be in the "Moscow" block.
And you have a question, if I enter a part of the word "Moscow", that is, "Mo", for example, in an absolute block with a list, this part of the word should get a different color.
Input - "Mo"
Absolute block - " Mo squa"
or
Input - "Ba"
Absolute block - "Despasar Bali " Please
help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
davidnum95, 2018-05-22
@TchernyavskD

Here is the correct one

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question