aboutsummaryrefslogtreecommitdiff
path: root/docs/javascript.html
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-08-18 19:32:50 -0700
committerJacob Thornton <[email protected]>2012-08-18 19:32:50 -0700
commit937cfa6a88919eaa6bfd3e65405093f9bd46c95d (patch)
tree809c4aab88534cd87963e660aab3f7edf1aac6a4 /docs/javascript.html
parent1166b39630cb2394722456a38d99a3cca4c97354 (diff)
downloadbootstrap-937cfa6a88919eaa6bfd3e65405093f9bd46c95d.tar.xz
bootstrap-937cfa6a88919eaa6bfd3e65405093f9bd46c95d.zip
add note about .nav
Diffstat (limited to 'docs/javascript.html')
-rw-r--r--docs/javascript.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/javascript.html b/docs/javascript.html
index bc5d606cd..31ad87edd 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -566,7 +566,7 @@ $('#myModal').on('hidden', function () {
<h2>Usage</h2>
<h3>Via data attributes</h3>
- <p>To easily add scrollspy behavior to your topbar navigation, just add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the body) and <code>data-target=".navbar"</code> to select which nav to use.</p>
+ <p>To easily add scrollspy behavior to your topbar navigation, just add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the body) and <code>data-target=".navbar"</code> to select which nav to use. You'll want to scrollspy with the <code>.nav</code> class.</p>
<pre class="prettyprint linenums">&lt;body data-spy="scroll" data-target=".navbar"&gt;...&lt;/body&gt;</pre>
<h3>Via JavaScript</h3>