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 %}