diff options
| author | Chris Rebert <[email protected]> | 2013-08-12 16:59:50 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2013-08-12 17:43:38 -0700 |
| commit | a13fe0a4a04c5712cb77bed6d508c89c9bcbb18b (patch) | |
| tree | b305379b63c112ee40c7365eb060451af190c58c /css.html | |
| parent | 10356f9d67e6d5a1f3440e58c81e054f078501d7 (diff) | |
| download | bootstrap-a13fe0a4a04c5712cb77bed6d508c89c9bcbb18b.tar.xz bootstrap-a13fe0a4a04c5712cb77bed6d508c89c9bcbb18b.zip | |
use unique IDs in Forms examples in docs
Diffstat (limited to 'css.html')
| -rw-r--r-- | css.html | 64 |
1 files changed, 32 insertions, 32 deletions
@@ -1335,12 +1335,12 @@ For example, <code><section></code> should be wrapped as inline. <fieldset> <legend>Legend</legend> <div class="form-group"> - <label for="exampleInputEmail">Email address</label> - <input type="text" class="form-control" id="exampleInputEmail" placeholder="Enter email"> + <label for="exampleInputEmail1">Email address</label> + <input type="text" class="form-control" id="exampleInputEmail1" placeholder="Enter email"> </div> <div class="form-group"> - <label for="exampleInputPassword">Password</label> - <input type="password" class="form-control" id="exampleInputPassword" placeholder="Password"> + <label for="exampleInputPassword1">Password</label> + <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password"> </div> <div class="form-group"> <label for="exampleInputFile">File input</label> @@ -1360,12 +1360,12 @@ For example, <code><section></code> should be wrapped as inline. <fieldset> <legend>Legend</legend> <div class="form-group"> - <label for="exampleInputEmail">Email address</label> - <input type="text" class="form-control" id="exampleInputEmail" placeholder="Enter email"> + <label for="exampleInputEmail1">Email address</label> + <input type="text" class="form-control" id="exampleInputEmail1" placeholder="Enter email"> </div> <div class="form-group"> - <label for="exampleInputPassword">Password</label> - <input type="password" class="form-control" id="exampleInputPassword" placeholder="Password"> + <label for="exampleInputPassword1">Password</label> + <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password"> </div> <div class="form-group"> <label for="exampleInputFile">File input</label> @@ -1395,12 +1395,12 @@ For example, <code><section></code> should be wrapped as inline. </div> <form class="bs-example form-inline" role="form"> <div class="form-group"> - <label class="sr-only" for="exampleInputEmail">Email address</label> - <input type="text" class="form-control" id="exampleInputEmail" placeholder="Enter email"> + <label class="sr-only" for="exampleInputEmail2">Email address</label> + <input type="text" class="form-control" id="exampleInputEmail2" placeholder="Enter email"> </div> <div class="form-group"> - <label class="sr-only" for="exampleInputPassword">Password</label> - <input type="password" class="form-control" id="exampleInputPassword" placeholder="Password"> + <label class="sr-only" for="exampleInputPassword2">Password</label> + <input type="password" class="form-control" id="exampleInputPassword2" placeholder="Password"> </div> <div class="checkbox"> <label> @@ -1412,12 +1412,12 @@ For example, <code><section></code> should be wrapped as inline. {% highlight html %} <form class="form-inline" role="form"> <div class="form-group"> - <label class="sr-only" for="exampleInputEmail">Email address</label> - <input type="text" class="form-control" id="exampleInputEmail" placeholder="Enter email"> + <label class="sr-only" for="exampleInputEmail2">Email address</label> + <input type="text" class="form-control" id="exampleInputEmail2" placeholder="Enter email"> </div> <div class="form-group"> - <label class="sr-only" for="exampleInputPassword">Password</label> - <input type="password" class="form-control" id="exampleInputPassword" placeholder="Password"> + <label class="sr-only" for="exampleInputPassword2">Password</label> + <input type="password" class="form-control" id="exampleInputPassword2" placeholder="Password"> </div> <div class="checkbox"> <label> @@ -1432,15 +1432,15 @@ For example, <code><section></code> should be wrapped as inline. <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> <form class="bs-example form-horizontal"> <div class="form-group"> - <label for="inputEmail" class="col-lg-2 control-label">Email</label> + <label for="inputEmail1" class="col-lg-2 control-label">Email</label> <div class="col-lg-10"> - <input type="text" class="form-control" id="inputEmail" placeholder="Email"> + <input type="text" class="form-control" id="inputEmail1" placeholder="Email"> </div> </div> <div class="form-group"> - <label for="inputPassword" class="col-lg-2 control-label">Password</label> + <label for="inputPassword1" class="col-lg-2 control-label">Password</label> <div class="col-lg-10"> - <input type="password" class="form-control" id="inputPassword" placeholder="Password"> + <input type="password" class="form-control" id="inputPassword1" placeholder="Password"> </div> </div> <div class="form-group"> @@ -1461,15 +1461,15 @@ For example, <code><section></code> should be wrapped as inline. {% highlight html %} <form class="form-horizontal" role="form"> <div class="form-group"> - <label for="inputEmail" class="col-lg-2 control-label">Email</label> + <label for="inputEmail1" class="col-lg-2 control-label">Email</label> <div class="col-lg-10"> - <input type="text" class="form-control" id="inputEmail" placeholder="Email"> + <input type="text" class="form-control" id="inputEmail1" placeholder="Email"> </div> </div> <div class="form-group"> - <label for="inputPassword" class="col-lg-2 control-label">Password</label> + <label for="inputPassword1" class="col-lg-2 control-label">Password</label> <div class="col-lg-10"> - <input type="password" class="form-control" id="inputPassword" placeholder="Password"> + <input type="password" class="form-control" id="inputPassword1" placeholder="Password"> </div> </div> <div class="form-group"> @@ -1628,7 +1628,7 @@ For example, <code><section></code> should be wrapped as inline. <p>When you need to place regular, static text next to a form label within a horizontal form, use the <code>.form-control-static</code> class on a <code><p></code>.</p> <form class="bs-example form-horizontal"> <div class="form-group"> - <label for="inputEmail" class="col-lg-2 control-label">Email</label> + <label class="col-lg-2 control-label">Email</label> <div class="col-lg-10"> <p class="form-control-static">[email protected]</p> </div> @@ -1643,15 +1643,15 @@ For example, <code><section></code> should be wrapped as inline. {% highlight html %} <form class="form-horizontal" role="form"> <div class="form-group"> - <label for="inputEmail2" class="col-lg-2 control-label">Email</label> + <label class="col-lg-2 control-label">Email</label> <div class="col-lg-10"> <p class="form-control-static">[email protected]</p> </div> </div> <div class="form-group"> - <label for="inputPassword2" class="col-lg-2 control-label">Password</label> + <label for="inputPassword" class="col-lg-2 control-label">Password</label> <div class="col-lg-10"> - <input type="password" class="form-control" id="inputPassword2" placeholder="Password"> + <input type="password" class="form-control" id="inputPassword" placeholder="Password"> </div> </div> </form> @@ -1695,8 +1695,8 @@ For example, <code><section></code> should be wrapped as inline. <form class="bs-example"> <fieldset disabled> <div class="form-group"> - <label for="disabledInput">Disabled input</label> - <input type="text" id="disabledInput" class="form-control" placeholder="Disabled input"> + <label for="disabledTextInput">Disabled input</label> + <input type="text" id="disabledTextInput" class="form-control" placeholder="Disabled input"> </div> <div class="form-group"> <label for="disabledSelect">Disabled select menu</label> @@ -1716,8 +1716,8 @@ For example, <code><section></code> should be wrapped as inline. <form class="form-inline" role="form"> <fieldset disabled> <div class="form-group"> - <label for="disabledInput">Disabled input</label> - <input type="text" id="disabledInput" class="form-control" placeholder="Disabled input"> + <label for="disabledTextInput">Disabled input</label> + <input type="text" id="disabledTextInput" class="form-control" placeholder="Disabled input"> </div> <div class="form-group"> <label for="disabledSelect">Disabled select menu</label> |
