In jQuery, I am looking for a similar selector :contains
, but I need to make a perfect match with the text of the element. Whether there is a?
<div>1</div> <div>12</div> <div>13</div> <div>135</div>
So if I search for text = 1
, I would only get the first div
source share