I'm getting an error that I haven't seen before and not sure as to why
I'm looking for a specific element on a page using jQuery
$(".bmr-dropdown-menu-item__text")
works as expected. However when I try to search the innerHTML of all of the results using :contains()
I get an error.
What am I doing wrong?
$(".bmr-dropdown-menu-item__text")
<span class="bmr-dropdown-menu-item__text ng-binding">Cold Prospect</span>
$(".bmr-dropdown-menu-item__text:contains('Cold')")
VM4277:1 Uncaught DOMException: Failed to execute '$$' on 'CommandLineAPI': '.bmr-dropdown-menu-item__text:contains('Cold')' is not a valid selector.
at <anonymous>:1:1