JSFiddle - React, Tailwind, and code Playground

by rwaldron

HTML

<label for="something">
    <input type="checkbox" id="something" name="something"> This is a label
</label>

JavaScript

console.log( $("label").attr("for") )