@@ -1446,7 +1446,8 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1446,7 +1446,8 @@ For example, <code><section></code> should be wrapped as inline.
<h2id="forms-example">Basic example</h2>
<h2id="forms-example">Basic example</h2>
<p>Individual form controls automatically receive some global styling. All textual <code><input></code>, <code><textarea></code>, and <code><select></code> elements with <code>.form-control</code> are set to <code>width: 100%;</code> by default. Wrap labels and controls in <code>.form-group</code> for optimum spacing.</p>
<p>Individual form controls automatically receive some global styling. All textual <code><input></code>, <code><textarea></code>, and <code><select></code> elements with <code>.form-control</code> are set to <code>width: 100%;</code> by default. Wrap labels and controls in <code>.form-group</code> for optimum spacing.</p>
@@ -1502,7 +1504,8 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1502,7 +1504,8 @@ For example, <code><section></code> should be wrapped as inline.
<h4>Always add labels</h4>
<h4>Always add labels</h4>
<p>Screen readers will have trouble with your forms if you don't include a label for every input. For these inline forms, you can hide the labels using the <code>.sr-only</code> class.</p>
<p>Screen readers will have trouble with your forms if you don't include a label for every input. For these inline forms, you can hide the labels using the <code>.sr-only</code> class.</p>
@@ -1540,7 +1544,8 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1540,7 +1544,8 @@ For example, <code><section></code> should be wrapped as inline.
<h2id="forms-horizontal">Horizontal form</h2>
<h2id="forms-horizontal">Horizontal form</h2>
<p>Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout by adding <code>.form-horizontal</code> to the form. Doing so changes <code>.form-group</code>s to behave as grid rows, so no need for <code>.row</code>.</p>
<p>Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout by adding <code>.form-horizontal</code> to the form. Doing so changes <code>.form-group</code>s to behave as grid rows, so no need for <code>.row</code>.</p>
@@ -1698,7 +1712,8 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1698,7 +1712,8 @@ For example, <code><section></code> should be wrapped as inline.
<h3>Selects</h3>
<h3>Selects</h3>
<p>Use the default option, or add <code>multiple</code> to show multiple options at once.</p>
<p>Use the default option, or add <code>multiple</code> to show multiple options at once.</p>
<formclass="bs-example">
<divclass="bs-example">
<formrole="form">
<selectclass="form-control">
<selectclass="form-control">
<option>1</option>
<option>1</option>
<option>2</option>
<option>2</option>
...
@@ -1715,6 +1730,7 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1715,6 +1730,7 @@ For example, <code><section></code> should be wrapped as inline.
<option>5</option>
<option>5</option>
</select>
</select>
</form>
</form>
</div><!-- /.bs-example -->
{% highlight html %}
{% highlight html %}
<selectclass="form-control">
<selectclass="form-control">
<option>1</option>
<option>1</option>
...
@@ -1736,7 +1752,8 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1736,7 +1752,8 @@ For example, <code><section></code> should be wrapped as inline.
<h2id="forms-controls-static">Static control</h2>
<h2id="forms-controls-static">Static control</h2>
<p>When you need to place plain text next to a form label within a horizontal form, use the <code>.form-control-static</code> class on a <code><p></code>.</p>
<p>When you need to place plain text next to a form label within a horizontal form, use the <code>.form-control-static</code> class on a <code><p></code>.</p>
@@ -1750,6 +1767,7 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1750,6 +1767,7 @@ For example, <code><section></code> should be wrapped as inline.
</div>
</div>
</div>
</div>
</form>
</form>
</div><!-- /.bs-example -->
{% highlight html %}
{% highlight html %}
<formclass="form-horizontal"role="form">
<formclass="form-horizontal"role="form">
<divclass="form-group">
<divclass="form-group">
...
@@ -1773,18 +1791,22 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1773,18 +1791,22 @@ For example, <code><section></code> should be wrapped as inline.
<h3id="forms-input-focus">Input focus</h3>
<h3id="forms-input-focus">Input focus</h3>
<p>We remove the default <code>outline</code> styles on some form controls and apply a <code>box-shadow</code> in its place for <code>:focus</code>.</p>
<p>We remove the default <code>outline</code> styles on some form controls and apply a <code>box-shadow</code> in its place for <code>:focus</code>.</p>
<formclass="bs-example">
<divclass="bs-example">
<formrole="form">
<inputclass="form-control"id="focusedInput"type="text"value="This is focused...">
<inputclass="form-control"id="focusedInput"type="text"value="This is focused...">
</form>
</div>
</div>
{% highlight html %}
{% highlight html %}
<inputclass="form-control"id="focusedInput"type="text"value="This is focused...">
<inputclass="form-control"id="focusedInput"type="text"value="This is focused...">
@@ -1802,7 +1824,8 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1802,7 +1824,8 @@ For example, <code><section></code> should be wrapped as inline.
<p>While Bootstrap will apply these styles in all browsers, Internet Explorer 9 and below don't actually support the <code>disabled</code> attribute on a <code><fieldset></code>. Use custom JavaScript to disable the fieldset in these browsers.</p>
<p>While Bootstrap will apply these styles in all browsers, Internet Explorer 9 and below don't actually support the <code>disabled</code> attribute on a <code><fieldset></code>. Use custom JavaScript to disable the fieldset in these browsers.</p>
@@ -1848,7 +1872,8 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1848,7 +1872,8 @@ For example, <code><section></code> should be wrapped as inline.
<h3id="forms-validation">Validation states</h3>
<h3id="forms-validation">Validation states</h3>
<p>Bootstrap includes validation styles for error, warning, and success states on form controls. To use, add <code>.has-warning</code>, <code>.has-error</code>, or <code>.has-success</code> to the parent element. Any <code>.control-label</code>, <code>.form-control</code>, and <code>.help-block</code> within that element will receive the validation styles.</p>
<p>Bootstrap includes validation styles for error, warning, and success states on form controls. To use, add <code>.has-warning</code>, <code>.has-error</code>, or <code>.has-success</code> to the parent element. Any <code>.control-label</code>, <code>.form-control</code>, and <code>.help-block</code> within that element will receive the validation styles.</p>
<formclass="bs-example">
<divclass="bs-example">
<formrole="form">
<divclass="form-group has-success">
<divclass="form-group has-success">
<labelclass="control-label"for="inputSuccess">Input with success</label>
<labelclass="control-label"for="inputSuccess">Input with success</label>