From 937cfa6a88919eaa6bfd3e65405093f9bd46c95d Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 18 Aug 2012 19:32:50 -0700 Subject: add note about .nav --- docs/javascript.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/javascript.html') 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 () {

Usage

Via data attributes

-

To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll" to the element you want to spy on (most typically this would be the body) and data-target=".navbar" to select which nav to use.

+

To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll" to the element you want to spy on (most typically this would be the body) and data-target=".navbar" to select which nav to use. You'll want to scrollspy with the .nav class.

<body data-spy="scroll" data-target=".navbar">...</body>

Via JavaScript

-- cgit v1.2.3