diff options
| author | Kevin Kirsche <[email protected]> | 2015-02-24 09:14:50 -0500 |
|---|---|---|
| committer | Kevin Kirsche <[email protected]> | 2015-02-24 09:14:50 -0500 |
| commit | ced312a90e5e4eeb9dc7143abc18364159ee3216 (patch) | |
| tree | 905796fdcf90ab1742dc0153fc64374ff99689cd /docs/_includes/js | |
| parent | feda77f1274cc22cacf21933bccb080add42a7d0 (diff) | |
| download | bootstrap-ced312a90e5e4eeb9dc7143abc18364159ee3216.tar.xz bootstrap-ced312a90e5e4eeb9dc7143abc18364159ee3216.zip | |
[Docs—Fixes #15882]Use an ID as the example for Scrollspy
Fixes #15882 — Use an ID as the example for Scrollspy so that it is more clear that this is for use with a single nav.
Diffstat (limited to 'docs/_includes/js')
| -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 %} |
