JSFiddle - React, Tailwind, and code Playground

by mattii

HTML

<input type="checkbox" value="1">
<input type="checkbox" value="0">
<input type="checkbox" value="1">

JavaScript

$(document).ready ('input[type="checkbox"]', function(event) {
  if ($(this).val==1) {
    $(this).is(":checked")
  }
})