How to choose a element for the full compliance of the text (jQuery) ?

0 like 0 dislike
8 views
There is a DOM tree
 1  2  1 1 

I need to select the child element containing just "1" (but not "1 1"), so the operation .contains() is not suitable.
by | 8 views

3 Answers

0 like 0 dislike
$.each and compare the desired line .text()?
by
0 like 0 dislike
api.jquery.com/contains-selector/ — probably sometimes it is necessary in the API Reference to get
by
0 like 0 dislike
Write your own filter is easy: anton.shevchuk.name/javascript/jquery-for-beginners-filter-extend/
\r
But in any case it will not be fast, it would be better to use classes or some other attributes to find desired.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
32,874 users