title: check checkbox if other checkbox with same value is checked jquery
body: <p>How to check checkbox if other checkbox with same value is checked. If select 1 than it should check the other div checkbox with the same value.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div&gt;
    &lt;input type="checkbox" value="1"&gt;1
    &lt;input type="checkbox" value="2"&gt;2 
  &lt;/div&gt;
  &lt;div&gt;
    &lt;input type="checkbox" value="1"&gt;1
    &lt;input type="checkbox" value="2"&gt;2 
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>