JSFiddle - React, Tailwind, and code Playground

HTML

<div class="chkHolder">
  <input type="radio" class="chk" name="a" id="a" />
  <input type="radio" class="chk" name="b" id="b" />
</div>
<a href="#">check all</a>

JavaScript

$(document).ready(function() {
    $('.chk').live('change', function() {
      alert('change event fired');
    });
    $('a').click(function() {
      $('.chk').attr('checked', true).change();
    });
  });