Can anyone tell me if it's possible to find an element based on its content rather than by an id or class?
I am attempting to find elements that don't have distinct classes or id's. (Then I then need to find that element's parent.)
findjquerytext;
Can anyone tell me if it's possible to find an element based on its content rather than by an id or class?
I am attempting to find elements that don't have distinct classes or id's. (Then I then need to find that element's parent.)
Best Answer
You can use the
:contains
selector to get elements based on their content.Demo here