diff --git a/javascript.html b/javascript.html index bb0118e321..3dafc4ff16 100644 --- a/javascript.html +++ b/javascript.html @@ -531,7 +531,7 @@ $('.dropdown-toggle').dropdown()
Call the scrollspy via JavaScript:
{% highlight js %} -$('#navbar-example').scrollspy(options) +$('body').scrollspy({ target: '#navbar-example' }) {% endhighlight %}