JSFiddle - React, Tailwind, and code Playground

by wirey00

HTML

<input type='checkbox' checked/>

JavaScript

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