title: Scrolling to the Bottom of a Bootstrap(2.3.2) Modal
body: <p>Hello I am trying to scroll to the bottom of a bootstrap modal onclick. So far I haven't had any success but moving the back of the page around. Any ideas on what to do?</p>
  
  <p>I've looked at: 
  <a href="https://stackoverflow.com/questions/13388002/autoscrolling-a-bootstrap-modal-on-modalshow">Autoscrolling a bootstrap modal on modal(&#39;show&#39;)</a><br>
  <a href="https://stackoverflow.com/questions/9899676/twitter-bootstrap-scrollable-modal">Twitter bootstrap scrollable modal</a></p>
  
  <p>HTML</p>
  
  <pre><code>&lt;div id="groupModal" class="modal fade"&gt;
      &lt;div class="modal-footer"&gt;
          &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
          &lt;h4 id="groupName"&gt;&lt;/h4&gt;
      &lt;/div&gt;
      &lt;div class="modal-body"&gt;
          &lt;div class="container-fluid"&gt;
              &lt;div class="row-fluid"&gt;
              &lt;/div&gt;
              &lt;div id="interestedDiv" class="collapse"&gt;
                  &lt;form id="interestedForm"&gt;
                      &lt;fieldset&gt;
                          &lt;legend&gt;Interested Form&lt;/legend&gt;
                          &lt;input id="firstNameField" class="interestedField" type="text" placeholder="First Name" required&gt;
                          &lt;input id="lastNameField" class="interestedField" type="text" placeholder="Last Name" required&gt;
                          &lt;input id="emailField" class="interestedField" type="email" placeholder="Email" required&gt;
                          &lt;input id="phoneField" class="interestedField" type="tel" placeholder="Phone Number"&gt;
                          &lt;button style="margin-bottom: 10px !important;" id="interestedSubmitButton" type="submit" class="btn btn-custom" disabled="true"&gt;Submit&lt;/button&gt;
                      &lt;/fieldset&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="modal-footer"&gt;
          &lt;div class="pull-left"&gt;
              &lt;a id="interestedBtn" href="#" data-toggle="collapse" data-target="#interestedDiv"&gt;&lt;i id="chevron" class="icon-chevron-right"&gt;&lt;/i&gt; I'm Interested!&lt;/a&gt;
          &lt;/div&gt;
          &lt;!--        &lt;a href="#" data-dismiss="modal" class="btn btn-custom"&gt;Close&lt;/a&gt;--&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>$('#interestedBtn').click(function(event){
      if($('#interestedDiv').hasClass('in')) {
          $('#chevron').attr('class', 'icon-chevron-right');
      } else {
          $('#chevron').attr('class', 'icon-chevron-up');
          $('#firstNameField').focus();
          $('#groupModal').animate({
              scrollTop: $('#groupModal').position().top + $('#groupModal').height()
          });
      }
  });
  </code></pre>