From f3fd67772e4466bd17ccffa114287f55ac09345d Mon Sep 17 00:00:00 2001 From: Florian Weber Date: Mon, 5 Aug 2013 23:37:08 +0200 Subject: [PATCH] fix scrollSpy instructions for JS call Don't really know if this is correct, but at least it only worked for me that way... --- javascript.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript.html b/javascript.html index aa65eabe8f..d1aa0c730f 100644 --- a/javascript.html +++ b/javascript.html @@ -531,7 +531,7 @@ $('.dropdown-toggle').dropdown()

Via JavaScript

Call the scrollspy via JavaScript:

{% highlight js %} -$('#navbar-example').scrollspy(options) +$('body').scrollspy({ target: '#navbar-example' ) {% endhighlight %}