nt you want to spy on (most typically this would be the body) and <code>data-target=".navbar"</code> to select which nav to use. You'll want to use scrollspy with a <code>.nav</code> component.</p>
   <pre class="prettyprint linenums">&lt;body data-spy="scroll" data-target=".navbar"&gt;...&lt;/body&gt;</pre>

   <h3>Via JavaScript</h3>
   <p>Call the scrollspy via JavaScript:</p>
   <pre class="prettyprint linenums">$('#navbar').scrollspy()</pre>

   <div class="alert alert-info">
      <strong>Heads up!</s