jquery search for string in text code example Example: jquery search for string in text if (str.indexOf("Yes") >= 0)