JSFiddle - React, Tailwind, and code Playground

by catfood

HTML

<input type="checkbox" name="01" checked="checked">
<input type="checkbox" name="02">

JavaScript

$("input").each(function(){
    alert($(this).prop("checked"))
});