Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for answer to How to create a checkbox with a clickable label? by No Results Found

Current License: CC BY-SA 4.0

Post Revisions

24 events
when toggle format what by license comment
Jul 2, 2024 at 7:16 history edited Rob Bednark CC BY-SA 4.0
added 97 characters in body
Jun 10, 2023 at 11:36 comment added Regis May @WesleyMurch: Method 1 seems not to work any more.
Mar 8, 2023 at 10:42 comment added I try so hard but I cry harder In what cases could the second version you mentioned NOT work? I had it with "for" etc. but it did not work. The first one did however.
May 26, 2022 at 18:55 comment added esantix Defining the cursor type on hover is quite redundant. The cursor value is always defined when hovering.
Jun 20, 2020 at 9:12 history edited Community Bot
Commonmark migration
Jul 12, 2019 at 15:05 comment added No Results Found @Archmede referring to the label text itself.
Jul 6, 2019 at 19:23 comment added Archmede How can the label "be positioned before or after the associated control" if it wraps the control? @WesleyMurch
Nov 6, 2017 at 14:23 history edited Grant Winney CC BY-SA 3.0
brought the example inline with the answer
Jun 19, 2017 at 6:11 history edited mplungjan CC BY-SA 3.0
added 44 characters in body
Dec 8, 2016 at 16:05 comment added BBlake As I learned today, don't mix Method 1 and Method 2. If you wrap the checkbox in a label AND include the for, then clicking on the label won't trigger the checkbox.
Aug 12, 2016 at 16:06 comment added user2144406 @John. On the page you link, bootstrap examples all wrap checkbox with label, I don not see any warnings as you indicate at all, perhaps its no longer relevant to the latest bootstrap.
Mar 4, 2016 at 5:29 comment added PandaWood The "for" method doesn't work if the label and input are in separate TD's of a table. Perhaps they have to be the same parent element - I didn't experiment but that would be reasonable
Jul 31, 2015 at 18:23 comment added No Results Found @John that is a markup guide specifically for bootstrap. If you aren't using a framework, or are using a different one, it should be completely fine. Thanks for the reply.
Jul 31, 2015 at 14:29 comment added Max @Wesley. getbootstrap.com/css/#forms - don't wrap inputs with <label> if makes things harder for mobile responsiveness
May 7, 2015 at 12:25 comment added Armfoot Thanks for this, I took a bigger step and created a checkbutton, without showing the checkbox itself. I just wonder if there's a way to only use CSS...
Nov 6, 2014 at 7:59 comment added Max Love it, but please edit again. This is only good for checkboxes. Let's not encourage folks to wrap their other inputs with labels, because that breaks the grid system and mobile responsiveness will be harder to come by
Mar 6, 2014 at 21:58 history edited stormdrain CC BY-SA 3.0
[redacted]
Sep 30, 2013 at 9:12 history edited hakre CC BY-SA 3.0
question is about HTML, not XHTML nor polyglot
Dec 19, 2012 at 5:18 history edited Dave Jarvis CC BY-SA 3.0
Emphasize the solutions and provide example text to answer Colonel's question.
Jul 20, 2012 at 9:10 review Suggested edits
Jul 20, 2012 at 9:25
Jun 9, 2011 at 15:11 history edited No Results Found CC BY-SA 3.0
added opinion about advantages (and some facts for the heck of it); deleted 1 characters in body
Jun 9, 2011 at 14:40 vote accept laurent
Jun 9, 2011 at 13:43 history edited No Results Found CC BY-SA 3.0
added 548 characters in body; deleted 14 characters in body; added 4 characters in body
Jun 9, 2011 at 13:36 history answered No Results Found CC BY-SA 3.0
toggle format

AltStyle によって変換されたページ (->オリジナル) /