JSFiddle - React, Tailwind, and code Playground
by Addy Osmani
HTML
<input type="checkbox" id="checkbox"/>
JavaScript
window.alert($("#checkbox").prop("checked"));
by Addy Osmani
<input type="checkbox" id="checkbox"/>
window.alert($("#checkbox").prop("checked"));