JSFiddle - React, Tailwind, and code Playground

by rwaldron

HTML

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

JavaScript

console.log( $('input[type="checkbox"]').length )
console.log( $('[checked]').length )