JSFiddle - React, Tailwind, and code Playground

by AndyE

HTML

<button>Test</button>
<input type="checkbox" />
<input type="checkbox" />
<input type="checkbox" />
<input type="checkbox" />

JavaScript

$('button').click(function () {
      var atLeastOneIsChecked = $("input").is(":checked");
      alert(atLeastOneIsChecked);
    });