]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixed empty for fields on select labels 71/head
authorDavid Haywood Smith <davehs@gmail.com>
Tue, 23 Aug 2011 23:05:07 +0000 (00:05 +0100)
committerDavid Haywood Smith <davehs@gmail.com>
Tue, 23 Aug 2011 23:05:07 +0000 (00:05 +0100)
Also added id fields to selects where needed

docs/index.html

index 1669e6123abb1af4bde7c4021bed792fd34b7011..58be9e8b5f868bb8dc71bb5f8dc92350d705c728 100644 (file)
         <fieldset>
           <legend>Example form legend</legend>
           <div class="clearfix">
-            <label for="">X-Large Input</label>
+            <label for="xlInput">X-Large Input</label>
             <div class="input">
               <input class="xlarge" id="xlInput" name="xlInput" size="30" type="text" />
             </div>
           </div> <!-- /clearfix -->
           <div class="clearfix">
-            <label for="">Select</label>
+            <label for="normalSelect">Select</label>
             <div class="input">
-              <select>
+              <select name="normalSelect" id="normalSelect">
                 <option>1</option>
                 <option>2</option>
                 <option>3</option>
             </div>
           </div> <!-- /clearfix -->
           <div class="clearfix">
-            <label for="">Select</label>
+            <label for="mediumSelect">Select</label>
             <div class="input">
-              <select class="medium">
+              <select class="medium" name="mediumSelect" id="mediumSelect">
                 <option>1</option>
                 <option>2</option>
                 <option>3</option>
         <fieldset>
           <legend>Example form legend</legend>
           <div class="clearfix">
-            <label for="">X-Large Input</label>
+            <label for="xlInput">X-Large Input</label>
             <div class="input">
               <input class="xlarge" id="xlInput" name="xlInput" size="30" type="text" />
             </div>
           </div> <!-- /clearfix -->
           <div class="clearfix">
-            <label for="">Select</label>
+            <label for="stackedSelect">Select</label>
             <div class="input">
-              <select>
+              <select name="stackedSelect" id="stackedSelect">
                 <option>1</option>
                 <option>2</option>
                 <option>3</option>