JSFiddle - React, Tailwind, and code Playground

by Krishna Gopinath

HTML

<input type="checkbox" id="Check" />SelectAll
<br />
<input type="radio" />First
<br />
<input type="radio" />Second
<br />
<input type="radio" />Third
<br />
<input type="radio" />Fourth
<br />
<input type="radio" />Fifth</div>

JavaScript

$("#Check").change(function () {
    var val = this.checked;
    $("input:radio").prop("checked", val);
});