Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap-2.0 branch - controls.radio_button label #59

Open
kylebolstad opened this issue May 3, 2012 · 1 comment
Open

bootstrap-2.0 branch - controls.radio_button label #59

kylebolstad opened this issue May 3, 2012 · 1 comment

Comments

@kylebolstad
Copy link

It looks like the "for" attribute in the "label" tag is the same value for all radio buttons in a control-group. As a result, clicking the label doesn't select the corresponding radio button.

@evgenyneu
Copy link

I noticed it as well. The result for the user is when you click a label it does not change to the corresponding radio button. The following is the suggested html taken from Twitter Bootstrap. Notice that labels have no for attributes. Can we achieve that?

<label class="radio">
  <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
  Option one is this and that—be sure to include why it's great
</label>
<label class="radio">
  <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
  Option two can be something else and selecting it will deselect option one
</label>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants