contains jquery code example
Example 1: if str contains jquery
if (str.indexOf("Yes") >= 0)
//case insensitive version
if (str.toLowerCase().indexOf("yes") >= 0)
Example 2: jquery contains text
$( "div:contains( 'hello' )" )
Example 3: jquery find by innertext
$( "div:contains('innerText')" );
Example 4: jquery label with text
var element = $("label:contains('SuperSweetCheckbox')");