var myVar="sibeesh passion");
if (myVar.toString().indexOf('passion') > 0) {
}
else {
} The above code helps you to find whether a string contains a particular string or not in JQuery.
Kindest Regards
Sibeesh
http://sibeeshpassion.com/
The following code helps you to find whether a string contains a particular string or not in JQuery.
var myVar="sibeesh passion");
if (myVar.toString().indexOf('passion') > 0) {
}
else {
}