1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05: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> <h3>Via JavaScript</h3>
<p>Call the scrollspy via JavaScript:</p> <p>Call the scrollspy via JavaScript:</p>
{% highlight js %} {% highlight js %}
$('#navbar-example').scrollspy(options) $('body').scrollspy({ target: '#navbar-example' )
{% endhighlight %} {% endhighlight %}
<div class="bs-callout bs-callout-danger"> <div class="bs-callout bs-callout-danger">