title: Bootstrap collapse - go to top of the open item?
body: <p>I'm using the bootstrap collapse function, but when I open an element which has a lot of content, then open the next element, it jumps down and doesn't go to the top of the open element. I've tried using scrollto plugin as shown below but it doesn't work:</p>
  
  <p>JS:</p>
  
  <pre><code>$(function(){
      $('a.accordion-toggle').click(function(){
          $.scrollTo( this, 500);                                             
      })
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class="accordion" id="accordion2"&gt;
      &lt;div class="accordion-group heading-left-11"&gt;
          &lt;h5 class="accordion-heading row"&gt;
              &lt;a class="accordion-toggle span11" data-toggle="collapse" data-parent="#accordion2" href="#collapse1"&gt;Austria&lt;/a&gt;
              &lt;div class="icon-rt span1"&gt;
                  &lt;span class="icn"&gt;&lt;/span&gt;
              &lt;/div&gt;
          &lt;/h5&gt;
          &lt;ul id="collapse1" class="member_list accordion-body collapse row"&gt;
              &lt;li class="accordion-inner pull-left span4"&gt;
                  &lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=101"&gt;Filmladen&lt;/a&gt;
                  &lt;span&gt; Michael Stejskal&lt;/span&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=101" title="Filmladen" &gt;&lt;img src="http://dev.europa-distribution.org/assets/logos_film_laden-570x190.png" alt="Filmladen" &gt;&lt;/a&gt;
              &lt;/li&gt;
              &lt;li class="accordion-inner pull-left span4"&gt;
                   &lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=194"&gt;Polyfilm&lt;/a&gt;
                   &lt;span&gt; Hans Koenig&lt;/span&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=194" title="Polyfilm" &gt;&lt;img src="http://dev.europa-distribution.org/assets/logos_polyfilm-570x190.png" alt="Polyfilm" &gt;&lt;/a&gt;
               &lt;/li&gt;
               &lt;li class="accordion-inner pull-left span4"&gt;
                   &lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=228"&gt;Stadtkino Filmverleih&lt;/a&gt;
                   &lt;span&gt; Claus Philipp&lt;/span&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=228" title="Stadtkino Filmverleih" &gt;&lt;img src="http://dev.europa-distribution.org/assets/logos_stadtkino_filmverleih-570x190.png" alt="Stadtkino Filmverleih" &gt;&lt;/a&gt;
               &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
      &lt;div class="accordion-group heading-left-11"&gt;
          &lt;h5 class="accordion-heading row"&gt;
              &lt;a class="accordion-toggle span11" data-toggle="collapse" data-parent="#accordion2" href="#collapse2"&gt;Belgium&lt;/a&gt;
              &lt;div class="icon-rt span1"&gt;
                  &lt;span class="icn"&gt;&lt;/span&gt;
              &lt;/div&gt;
          &lt;/h5&gt;
          &lt;ul id="collapse2" class="member_list accordion-body collapse row"&gt;
              &lt;li class="accordion-inner pull-left span4"&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=6"&gt;ABC&lt;/a&gt;&lt;span&gt; Nicolaine Den Breejen&lt;/span&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=6" title="ABC" &gt;&lt;img src="http://dev.europa-distribution.org/assets/logos_genci_kino_abc-570x190.png" alt="Genci kino abc" &gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li class="accordion-inner pull-left span4"&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=61"&gt;Cineart-Cinelibre&lt;/a&gt;&lt;span&gt; Eliane du Bois &amp;amp; Stephan de Potter&lt;/span&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=61" title="Cineart-Cinelibre" &gt;&lt;img src="http://dev.europa-distribution.org/assets/logos_cineart-570x190.png" alt="Cineart" &gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li class="accordion-inner pull-left span4"&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=127"&gt;Imagine Film Distribution&lt;/a&gt;&lt;span&gt; Christian Thomas &amp;amp; Tinne Bral&lt;/span&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=127" title="Imagine Film Distribution" &gt;&lt;img src="http://dev.europa-distribution.org/assets/logos_imagine-570x190.png" alt="Imagine" &gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li class="accordion-inner pull-left span4"&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=214"&gt;Le Parc Distribution&lt;/a&gt;&lt;span&gt; Jean-Pierre Pécasse&lt;/span&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=214" title="Le Parc Distribution" &gt;&lt;img src="http://dev.europa-distribution.org/assets/logos_le_parc-570x190.png" alt="le Parc distribution" &gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li class="accordion-inner pull-left span4"&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=145"&gt;Lumière&lt;/a&gt;&lt;span&gt; Jan de Clerq &amp;amp; Annemie Degryse&lt;/span&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=145" title="Lumière" &gt;&lt;img src="http://dev.europa-distribution.org/assets/logos_lumiere-570x190.png" alt="logos_lumiere" &gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li class="accordion-inner pull-left span4"&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=383"&gt;O’Brother&lt;/a&gt;&lt;span&gt; Olivier Bronckart&lt;/span&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=383" title="O’Brother" &gt;&lt;img src="http://dev.europa-distribution.org/assets/logos_obrother_distribution-570x190.png" alt="obrother distribution" &gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li class="accordion-inner pull-left span4"&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=185"&gt;Paradiso Filmed Entertainment&lt;/a&gt;&lt;span&gt; Olivier Mortagne&lt;/span&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=185" title="Paradiso Filmed Entertainment" &gt;&lt;img src="http://dev.europa-distribution.org/assets/logos_paradiso-570x190.png" alt="Paradiso Films" &gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li class="accordion-inner pull-left span4"&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=529"&gt;U-Dream&lt;/a&gt;&lt;span&gt; Stephanie Van den Berge&lt;/span&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=529" title="U-Dream" &gt;&lt;img src="http://dev.europa-distribution.org/assets/logos_udream-570x190.png" alt="uDream" &gt;&lt;/a&gt;&lt;/li&gt;                                
          &lt;/ul&gt;
      &lt;/div&gt;
      &lt;div class="accordion-group heading-left-11"&gt;
          &lt;h5 class="accordion-heading row"&gt;
              &lt;a class="accordion-toggle span11" data-toggle="collapse" data-parent="#accordion2" href="#collapse3"&gt;Bulgaria&lt;/a&gt;
              &lt;div class="icon-rt span1"&gt;
                  &lt;span class="icn"&gt;&lt;/span&gt;
              &lt;/div&gt;
          &lt;/h5&gt;
          &lt;ul id="collapse3" class="member_list accordion-body collapse row"&gt;
              &lt;li class="accordion-inner pull-left span4"&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=337"&gt;Artfest&lt;/a&gt;&lt;span&gt; Stefan Kitanov &amp;amp; Mira Staleva&lt;/span&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=337" title="Artfest" &gt;&lt;img src="http://dev.europa-distribution.org/assets/logos_artfest-570x190.png" alt="Art Fest" &gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li class="accordion-inner pull-left span4"&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=302"&gt;Pro Films&lt;/a&gt;&lt;span&gt; Emil Simeonov&lt;/span&gt;&lt;a href="http://www.cidinet.eu/display_distributor.php?id_target_distributor=302" title="Pro Films" &gt;&lt;img src="http://dev.europa-distribution.org/assets/logos_pro_films-570x190.png" alt="Pro Films" &gt;&lt;/a&gt;&lt;/li&gt;                                     
          &lt;/ul&gt;
      &lt;/div&gt;
      &lt;div class="accordion-group heading-left-11"&gt;
          &lt;h5 class="accordion-heading row"&gt;
              &lt;a class="accordion-toggle span11" data-toggle="collapse" data-parent="#accordion2" href="#collapse4"&gt;Canada&lt;/a&gt;
              &lt;div class="icon-rt span1"&gt;
                  &lt;span class="icn"&gt;&lt;/span&gt;
              &lt;/div&gt;
          &lt;/h5&gt;
      &lt;ul id="collapse4" class="member_list accordion-body collapse row"&gt;
          &lt;li class="accordion-inner pull-left span4"&gt;Metropole Films&lt;span&gt; Charles Tremblay&lt;/span&gt;&lt;img src="http://dev.europa-distribution.org/assets/logos_metropole_film_distribution-570x190.png" alt="métropole Films Distribution" &gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Any ideas?</p>