Using jquery how do i check and uncheck checkbox2 when checking and unchecking checkbox1?
<div>
    <input class="checkboxes" id="checkbox1" name="checkboxgroup" type="checkbox" value="First checkbox">
    <label for="checkbox1">First checkbox</label>
  </div>
  <div>
    <input class="checkboxes" id="checkbox2" name="checkboxgroup" type="checkbox" value="Second checkbox">
    <label for="checkbox2">Second checkbox</label>
  </div>
  <div>
    <input class="checkboxes" id="checkbox3" name="checkboxgroup" type="checkbox" value="Third checkbox">
    <label for="checkbox3">Third checkbox</label>
  </div>
 
     
    