jQuery if found in string
if-statement, jquery
Solution
If you are looking to check a javascript variable and not some element on the page, jQuery isn't going to really make it any easier/different than using plain javascript.
The other answers mentioned here using regex will work, but you might want to look at the String object reference or the RegExp object reference at w3schools, if you want to understand it better.
Problem
How can I have jQuery check to see if the content of a variable contains a specific word and have it execute an alert if matched?