JSFiddle - React, Tailwind, and code Playground

by wirey00

HTML

<input type='checkbox' checked/>

JavaScript

$('input[type=checkbox]').change(function(){
   console.log($(this).attr('checked')); 
});