Closed denilsonsa closed 10 years ago
The HTML <label> element can have an optional attribute for, which should be set to the id of the respective input element.
<label>
for
id
<input type="checkbox" id="foobar"> <label for="foobar">Foo bar</label> <!-- Note: the type here does not matter, it works for all types. -->
Alternatively, the <input> element can be put inside the <label> element.
<input>
<label for="foobar"><input type="checkbox" id="foobar"> Foo bar</label>
I've noticed this issue in:
Thanks Denilson. I have tidied up ALL the elements to ensure they have a corresponding "for" attribute where required. This will be released in version 2.1.
The HTML
<label>
element can have an optional attributefor
, which should be set to theid
of the respective input element.Alternatively, the
<input>
element can be put inside the<label>
element.I've noticed this issue in: