0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

fix scrollSpy instructions for JS call

Don't really know if this is correct, but at least it only worked for me that way...
This commit is contained in:
Florian Weber 2013-08-05 23:37:08 +02:00
parent bfe76273a0
commit f3fd67772e

View File

@ -531,7 +531,7 @@ $('.dropdown-toggle').dropdown()
<h3>Via JavaScript</h3>
<p>Call the scrollspy via JavaScript:</p>
{% highlight js %}
$('#navbar-example').scrollspy(options)
$('body').scrollspy({ target: '#navbar-example' )
{% endhighlight %}
<div class="bs-callout bs-callout-danger">