4 ms·
Boostrap does: http://getbootstrap.com/javascript/#buttons-checkbox-radio http://getbootstrap.com/javascript/#buttons-checkbox-radio
by rkrkrkrk 10y ago
Boostrap does: http://getbootstrap.com/javascript/#buttons-checkbox-radio http://getbootstrap.com/javascript/#buttons-checkbox-radio
- blowski 10y agoOnly with checkboxes, not with other types of input which are shown in the article (e.g. text, tel, email).
- nilved 10y agoSo Bootstrap is internally as well as externally inconsistent?
- blowski 10y agoI would call it pragmatic, as it makes the CSS easier when you want to put a custom checkbox design. Either way, it doesn't seem to be doing them any harm.
- cloverich 10y agoI'd thought that was the only way to get clicking on a checkbox label to trigger the checkbox click (unlike other inputs where you could simply use a for label).
- talmand 10y agoThe for attribute on labels work for checkboxes.