JSFiddle - React, Tailwind, and code Playground
HTML
<ul>
<li class="title">Checklist</li>
<li class="checkType checked">Card Type</li>
<li class="checkNumber checked">Card Number</li>
<li class="checkName checked">Name on Card</li>
<li class="checkMonth checked">Expiry Month</li>
<li class="checkYear checked">Expiry Year</li>
<li class="checkCode checked">Security Code</li>
</ul>
CSS
.title{font-size:23px; font-weight:bold;}
.checked{ color:#f00;}
JavaScript
$("li").each(function() {
if($(this).hasClass() == "checked") {
alert("hah");
}
});
//Scrap the above its probably totally wrong