I have this code. I am using contains function to check if the value stored in the string or not but getting error. can anyone help me how to check this.
var lang = reply.LANGUAGES[InstObj.langId];
var instElement = reply.QUAL[iCount] ;
if(instElement.contains(lang))
{
alert(lang);
}
else
{
alert(instElement);
}