]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Move placement of ID in docs example for dropdowns 1104/head
authorChris Gunther <chris@room118solutions.com>
Sun, 22 Jan 2012 16:46:44 +0000 (11:46 -0500)
committerChris Gunther <chris@room118solutions.com>
Sun, 22 Jan 2012 16:46:44 +0000 (11:46 -0500)
The ID specified by an href or data-target attribute should match the
li.dropdown, not the ul.dropdown-menu

docs/javascript.html

index 7f589de4c21eb1fc77e98a97524a1ded81341e54..9c7b217798173980bec5eefbbce1a6b28c15b955 100644 (file)
@@ -489,12 +489,12 @@ $('#myModal').on('hidden', function () {
 <pre class="prettyprint linenums">
 &lt;ul class="nav pills"&gt;
   &lt;li class="active"&gt;&lt;a href="#"&gt;Regular link&lt;/a&gt;&lt;/li&gt;
-  &lt;li class="dropdown"&gt;
+  &lt;li class="dropdown" id="menu1"&gt;
     &lt;a class="dropdown-toggle" data-toggle="dropdown" href="#menu1"&gt;
       Dropdown
       &lt;b class="caret"&gt;&lt;/b&gt;
     &lt;/a&gt;
-    &lt;ul id="menu1" class="dropdown-menu"&gt;
+    &lt;ul class="dropdown-menu"&gt;
       &lt;li&gt;&lt;a href="#"&gt;Action&lt;/a&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href="#"&gt;Another action&lt;/a&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href="#"&gt;Something else here&lt;/a&gt;&lt;/li&gt;