jQuery selector syntax for value of innerText -
I am trying to add a click event to a tab that is generated by the telephonic ASP.NET widget. I picked up a bunch of HTML generated in a static page for the purposes of the experiment:
gt; & lt; / HEAD & gt; & lt; body & gt; & lt; ul & gt; ; & Lt; li class = "rtsli"> gt; & lt; span class = "rtsOut"> Preferences & lt; / Li & gt; & lt; li class = "rtsli"> gt; & lt; span class = "rtsOut"> & lt; / li & gt; & lt; / ul & gt; & lt; / l & gt; & lt; / ul & gt; Lt; / body & gt; & lt; / html> Debugging shows that foo is expected as two items, however, I choose syntax to select another one Could not understand where the value of internal text is "more".
The question is how did I show innerText == 'more' expression in a text or directly in the selector string?
Try:
< Warning : strong> However this will work for html in question, : in this selector any element Which will include the given text, and not the only element whose text is equal to the text given (as stated by @RAS in a comment below.)
Comments
Post a Comment