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:
parent
bfe76273a0
commit
f3fd67772e
1 changed files with 1 additions and 1 deletions
|
@ -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">
|
||||||
|
|
Loading…
Add table
Reference in a new issue