Why javascript contains property is not working in chrome browser? I have tried that Contains Property in javascript.It is working fine in Mozila Firefox Browser. But It is
indexof returns the position of the string. If not found, it will return -1:
var ClearFilterValue = 'family Schools'; alert(ClearFilterValue.indexOf("family") != -1);