title: bootstrap scrollspy sidenav not working - last item selected
body: <p>I'm trying to get a sticky self-highlighting sidenav to work, and am having one heck of a time figuring out what I'm missing.  The content includes the data-spy="scroll" data-target=".sidenav" attributes, yet only the last item in the sidenav is highlighted, and none of the sidenav items highlight on scrolling.  I have an example jsfiddle:</p>
  
  <p><a href="http://jsfiddle.net/b8JkE/" rel="nofollow">http://jsfiddle.net/b8JkE/</a></p>
  
  <p>(adjust the width of the result pane so the .sidenav floats to the left side)</p>
  
  <p>Following the docs <a href="http://twitter.github.com/bootstrap/javascript.html#scrollspy" rel="nofollow">http://twitter.github.com/bootstrap/javascript.html#scrollspy</a></p>
  
  <p>The $('.sidenav') is affix()'ed. The div.sidenav has a ul w/ class="nav nav-tabs nav-stacked". There's a content div w/ data-spy="scroll" data-target=".sidenav" and yet, on page load, the last item in the navigation is highlighted, and nothing updates on scroll. What am I missing?</p>
  
  <p>html:</p>
  
  <pre><code>  &lt;div class="container"&gt;
      &lt;div class="row"&gt;
        &lt;div class="span2 sidenav-parent"&gt;
          &lt;div class="sidenav"&gt;
            &lt;ul class="nav nav-tabs nav-stacked"&gt;
              &lt;li&gt;&lt;a href="#a"&gt;a&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#b"&gt;b&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#c"&gt;c&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#d"&gt;d&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#e"&gt;e&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="span10" id="gimmelove" data-spy="scroll" data-target=".sidenav"&gt;
          &lt;h4 id="a"&gt;a&lt;/h4&gt;&lt;p&gt;Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party lo cavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.&lt;/p&gt;
          &lt;h4 id="b"&gt;b&lt;/h4&gt;&lt;p&gt;Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party lo cavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.&lt;/p&gt;
          &lt;h4 id="c"&gt;c&lt;/h4&gt;&lt;p&gt;Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party lo cavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.&lt;/p&gt;
          &lt;h4 id="d"&gt;d&lt;/h4&gt;&lt;p&gt;Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party lo cavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.&lt;/p&gt;
          &lt;h4 id="e"&gt;e&lt;/h4&gt;&lt;p&gt;Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party lo cavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.&lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;​
  </code></pre>
  
  <p>css:</p>
  
  <pre><code>body { margin-top: 20px; }
  #gimmelove { background-color:#f3f3f3; }
  .sidenav .active a { font-weight:600; background-color:#f3f3f3; }
  </code></pre>
  
  <p>​
  js:</p>
  
  <pre><code>$('.sidenav').affix();
  </code></pre>