diff options
| author | Mark Otto <[email protected]> | 2015-02-24 16:43:22 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2015-02-24 16:43:22 -0800 |
| commit | b7b69cd35301d4acdf69d09e1dbb1f4445551b2a (patch) | |
| tree | 0052099ed7d13b10bc38b24d458637cae5bc5941 /docs/_includes/js/scrollspy.html | |
| parent | 05513c52c4b31db3646639ba4e1b8a5ee7271ae9 (diff) | |
| parent | be164f4d1a8703144cfed588ed53d7ec432149e4 (diff) | |
| download | bootstrap-b7b69cd35301d4acdf69d09e1dbb1f4445551b2a.tar.xz bootstrap-b7b69cd35301d4acdf69d09e1dbb1f4445551b2a.zip | |
Merge branch 'master' of github.com:twbs/bootstrap
Diffstat (limited to 'docs/_includes/js/scrollspy.html')
| -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 %} |
