SyntaxFix
Write A Post
Hire A Developer
Questions
If you are worrying about Case sensitive change the case and compare the string.
if (stringvalue.toLocaleLowerCase().indexOf("mytexttocompare")!=-1) { alert("found"); }