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:
parent
bfe76273a0
commit
f3fd67772e
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user