diff options
| author | Mark Otto <[email protected]> | 2015-02-24 16:30:49 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2015-02-24 16:30:49 -0800 |
| commit | be164f4d1a8703144cfed588ed53d7ec432149e4 (patch) | |
| tree | cea351e3f097098f04c59764c42663a5754cd461 /docs/_includes | |
| parent | 7e594b4b03edcb779be7a0865d0078f60749785d (diff) | |
| parent | ced312a90e5e4eeb9dc7143abc18364159ee3216 (diff) | |
| download | bootstrap-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.html | 6 |
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 %} |
