JSFiddle - React, Tailwind, and code Playground

by romario333

HTML

<input type="checkbox" class="test" />

<br/><br/>

<div id="log"></div>

JavaScript

var count = $(".test").length;

$("#log").text("count=" + count);