JSFiddle - React, Tailwind, and code Playground

HTML

<div><input type='checkbox' checked /></div>

<div><input type='checkbox' checked disabled /></div>

    <div><input type='checkbox' /></div>

JavaScript

$(document).ready(function() {
    $("input[type='checkbox']:checked:not(:disabled)").parent().css({
        margin: "5px",
        border: "1px solid red"
    });
});