jQuery: find element by text - Stack Overflow

PHOTO EMBED

Wed Dec 01 2021 07:17:57 GMT+0000 (Coordinated Universal Time)

Saved by @jpalbright31 #javascript

$('div:contains("test")').css('background-color', 'red');
content_copyCOPY

https://stackoverflow.com/questions/7321896/jquery-find-element-by-text