How do I check if one string contains another substring?
Using JavaScript
JavaScript provides a few different ways to detect if one string contains another. This is a frequently asked question on StackOverflow.com, and several of the best solutions there are detailed in this short video solution.
Steve Smith
Solution Walkthrough
JSFiddle