bootstrap
bootstrap copied to clipboard
Checkboxes and radios documentation error
example code for radio buttons has an error, I believe
<div class="radio">
<label>
<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>
</div> <--- ## THIS TAG IS MISSING
<div class="radio"> <--- ## THIS TAG IS MISSING
<label>
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
Option two can be something else and selecting it will deselect option one
</label>
</div>
The code used as originally shown displays only one radio button.
@brainbolt I see 2 radio buttons on Mac Chrome. What OS and browser are you using?
Two radios buttons too.
Chrome 28.0.1500.72 on Windows 7, but are you sure? Because even the source code for that section of the page doesn't match the example given...
From getbootstrap.com/css/, lines 1465-1488.
<h3>Checkboxes and radios</h3>
<p>Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.</p>
<h4>Default (stacked)</h4>
<form class="bs-example">
<div class="checkbox">
<label>
<input type="checkbox" value="">
Option one is this and that—be sure to include why it's great
</label>
</div>
<br>
<div class="radio">
<label>
<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>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
Option two can be something else and selecting it will deselect option one
</label>
</div>
</form>
I see what's up now—fixed!