JSFiddle - React, Tailwind, and code Playground

by Nick Craver

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/dot-luv/jquery-ui.css">
<form class="formyform">
    <input type="checkbox" />
    <input type="checkbox" checked />
    <input type="checkbox" style="display: none;" />
    <input type="checkbox" style="display: none;" checked />
</form>

JavaScript

alert("Found: " + $(".formyform input:checked:visible").length);