aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-02-24 16:30:49 -0800
committerMark Otto <[email protected]>2015-02-24 16:30:49 -0800
commitbe164f4d1a8703144cfed588ed53d7ec432149e4 (patch)
treecea351e3f097098f04c59764c42663a5754cd461 /docs/_includes
parent7e594b4b03edcb779be7a0865d0078f60749785d (diff)
parentced312a90e5e4eeb9dc7143abc18364159ee3216 (diff)
downloadbootstrap-be164f4d1a8703144cfed588ed53d7ec432149e4.tar.xz
bootstrap-be164f4d1a8703144cfed588ed53d7ec432149e4.zip
Merge pull request #15900 from kkirsche/patch-5
[Docs—Fixes #15882]Use an ID as the example for Scrollspy
Diffstat (limited to 'docs/_includes')
-rw-r--r--docs/_includes/js/scrollspy.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/_includes/js/scrollspy.html b/docs/_includes/js/scrollspy.html
index 84370a7bf..7d5fa5b49 100644
--- a/docs/_includes/js/scrollspy.html
+++ b/docs/_includes/js/scrollspy.html
@@ -75,9 +75,9 @@ body {
}
{% endhighlight %}
{% highlight html %}
-<body data-spy="scroll" data-target=".navbar-example">
+<body data-spy="scroll" data-target="#navbar-example">
...
- <div class="navbar-example">
+ <div id="navbar-example">
<ul class="nav nav-tabs" role="tablist">
...
</ul>
@@ -89,7 +89,7 @@ body {
<h3>Via JavaScript</h3>
<p>After adding <code>position: relative;</code> in your CSS, call the scrollspy via JavaScript:</p>
{% highlight js %}
-$('body').scrollspy({ target: '.navbar-example' })
+$('body').scrollspy({ target: '#navbar-example' })
{% endhighlight %}