I am looking for a function written in javascript ( not in jquery) which will return true if the given word exactly matches ( should not be case sensitive).
like..
var searchOnstring=" Hi, how are doing?"
if( searchText=='ho'){
//output : false
}
if( searchText=='How'){
//output : true
}
Thanks.
See Question&Answers more detail:os