mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 21:49:09 +01:00
Merge pull request #9120 from FLOKER/patch-2
fix scrollSpy instructions for JS call
This commit is contained in:
commit
d89b364260
@ -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…
x
Reference in New Issue
Block a user