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


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
6 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 | 6 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
27,881 users