aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes/js/scrollspy.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/_includes/js/scrollspy.html')
-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 %}