title: How to check if string is present in variable in jquery
body: <p>I have the variable like</p>
  
  <p><code>var myVar = "The man is running"</code></p>
  
  <p><code>pattern = "run"</code></p>
  
  <p>I want to check via jquery that if it conatins words "run"</p>
  
  <p>Like</p>
  
  <pre><code>if($(myVar).(:contains(pattern)))
  return true
  </code></pre>
  
  <p>Is this possible</p>