You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 1, 2022. It is now read-only.
cvrebert edited this page Oct 12, 2014
·
1 revision
E019
.checkbox-inline should only be used on <label> elements
Wrong:
<spanclass="checkbox-inline"><inputtype="checkbox" id="inlineCheckbox1" value="option1" /> Option number one
</span>
Right:
<labelclass="checkbox-inline"><inputtype="checkbox" id="inlineCheckbox1" value="option1" /> Option number one
</label>
Incorrect markup used with the .checkbox-inline class. The correct markup structure is label.checkbox-inline>input[type="checkbox"]
.checkbox-inline requires a specific DOM structure. There cannot be any intervening layers of elements.
Wrong:
<labelclass="checkbox-inline"><spanclass="my-awesome-wrapper"><inputtype="checkbox" id="inlineCheckbox1" value="option1" /> Option number one
</span></label>
Right:
<labelclass="checkbox-inline"><inputtype="checkbox" id="inlineCheckbox1" value="option1" /> Option number one
</label>