indexof returns the position of the string. If not found, it will return -1:
var ClearFilterValue="family Schools";
alert(ClearFilterValue.indexOf("family") != -1);
indexof returns the position of the string. If not found, it will return -1:
var ClearFilterValue="family Schools";
alert(ClearFilterValue.indexOf("family") != -1);