title: compare text inside 2 div elements using javascript or jquery
body: <p>I have following 2 div tags</p>
  
  <pre><code>&lt;div class="one"&gt;
      +
     +++
      +
  &lt;/div&gt;
  </code></pre>
  
  <p>second div tag</p>
  
  <pre><code>&lt;div class="two"&gt;
      + +   ++++  + ++  + + +
      + ++ +++ + +++ ++ + +++
      + ++ + + ++ + + + + ++ 
  &lt;/div&gt;
  </code></pre>
  
  <p>Now what I want to find if <code>.one</code> is exist in <code>.two</code>. Is it possible if yes how can we do it in javascript?</p>
  
  <p><strong>Update</strong></p>
  
  <p>I want to check the <code>+</code> pattern. I mean does </p>
  
  <p><code>+
  +++
   +</code></p>
  
  <p>exist in <code>.two</code>? The pattern has to be in that same order in <code>.two</code>.</p>
  
  <p>@shub answer does not seem to be working. Here is <a href="https://jsfiddle.net/6L99q3a7/">JSFiddle</a> of that answer.</p>