jquery if text contains code example
Example 1: jquery contains text
$( "div:contains( 'hello' )" )
Example 2: jquery check if string contains specific word
var a = 'how are you';
a.includes('are'); // will return true if string contains search term