bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Checkboxes and radios documentation error

Open brainbolt opened this issue 13 years ago • 4 comments

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&mdash;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 avatar Jul 28 '13 02:07 brainbolt

@brainbolt I see 2 radio buttons on Mac Chrome. What OS and browser are you using?

cvrebert avatar Jul 28 '13 05:07 cvrebert

Two radios buttons too.

liuyl avatar Jul 28 '13 06:07 liuyl

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&mdash;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&mdash;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>

brainbolt avatar Jul 29 '13 01:07 brainbolt

I see what's up now—fixed!

mdo avatar Jul 30 '13 00:07 mdo