JSFiddle - React, Tailwind, and code Playground

by othree

HTML

<input type="checkbox" checked>

JavaScript

alert($('input').attr('checked'));
alert($('input').prop('checked'));