JSFiddle - React, Tailwind, and code Playground
by othree
HTML
<input type="checkbox" checked>
JavaScript
alert($('input').attr('checked'));
alert($('input').prop('checked'));
by othree
<input type="checkbox" checked>
alert($('input').attr('checked'));
alert($('input').prop('checked'));