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.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<div>
<input type="checkbox" value="1">1
<input type="checkbox" value="2">2
</div>
<div>
<input type="checkbox" value="1">1
<input type="checkbox" value="2">2
</div>