$(function() {
  $("#aa").click(function() {
    $("#aa2").attr("checked", true);
  });
  $("#bb").click(function() {
    $("#bb2").attr("checked", true);
  });
});<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type='radio' name='a' id='aa'/>aa
<input type='radio' name='a' id='bb'/>bb
<br>
<input type='radio' name='b' id='aa2'/>aa2
<input type='radio' name='b' id='bb2/'>bb2When I click aa, aa2 checked, click bb, bb2 cheked. However, then click aa, bb2 remains checked, and aa2 is not checked
 
     
     
    