JSFiddle - React, Tailwind, and code Playground

by Addy Osmani

HTML

<input type="checkbox" id="checkbox"/>

JavaScript

window.alert($("#checkbox").prop("checked"));