JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" id="checkBox1" checked /><input type="checkbox" id="checkBox2" />

JavaScript

console.log($("#checkBox1").attr('checked'));
console.log($("#checkBox2").attr('checked'));