0

Using jQuery, if I want to grab an element using the text inside it, I can do:

$( "div:contains('John went to the shop')" )

I can find loop functions and the use of XPATH, but nothing similar to jQuery.

Is there something simple like this for querySelector or equivalent methods?

Kam
  • 1
  • 1

0 Answers0