← Back to jqmin
Captain on the bridge:
Captain on the bridge:
<label class="custom-checkbox">
<input type="checkbox">
<span>✔</span>
<span>❌</span>
</label>
Prompt inside the label, wrapped in a span (gives the prompt a CSS hook):
<label class="custom-checkbox">
<span class="prompt">Captain on the bridge:</span>
<input type="checkbox">
<span>✔</span>
<span>❌</span>
</label>
Prompt as a bare text node inside the label — simpler than the span
version, no style hook. The whole label is still the click target:
<label class="custom-checkbox">
Captain on the bridge.
<input type="checkbox">
<span>✔</span>
<span>❌</span>
</label>