title: How to scroll to an element within a modal using jquery?
body: <p>I have an opened modal that I insert elements into line by line. Each line has it's own ID tag. Currently as the the list grows bigger than the modal window the text just gets hidden at the bottom of the modal window.  You can manually use the scroll bar but I would like the text to scroll up in the modal window as they printed.</p>
  
  <p>I have played around with the following code but that just scrolls the webpage behind the modal.  I have also tried replacing 'html, body' with modal elements to no avail.</p>
  
  <pre><code>$('html, body').animate({ scrollTop: $('#Element').offset().top }, 500);
  </code></pre>
  
  <p>I'm sure I close.  Any suggestions?</p>
  
  <p>thanks</p>