mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-06 13:46:42 +02:00
use the proper selector
This commit is contained in:
@@ -554,7 +554,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 linenos %}
|
{% highlight js linenos %}
|
||||||
$('#navbar').scrollspy()
|
$('.navbar').scrollspy()
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
|
Reference in New Issue
Block a user