winjs/winstrap

Need Checkbox without Label

jarrod-microsoft opened this issue · 1 comments

Currently there is no option to have a checkbox or radio button without attaching it to a label.

You can use an empty <span> inside the <label>:

<div class="checkbox">
    <label>
        <input type="checkbox" />
        <span></span>
    </label>
</div>

But you're right the styling of the checkbox or radio is linked to the <span> just after. A CSS trick to display custom styling instead of the native checkbox and radio elements.