jquery selector contains text code example
Example 1: jquery contains text
$( "div:contains( 'hello' )" )
Example 2: jquery find by innertext
$( "div:contains('innerText')" );
Example 3: jqurey text contains selector
$('div:contains("test")').css('background-color', 'red');