title: scroll to top of a bootstrap modal on click of a button in modal
body: <pre><code>&lt;div class="modal-dialog" role="document"&gt;
    &lt;div class="modal-content login conatct_main" id="mdlcont"&gt;
      &lt;div class="modal-body"&gt;
        &lt;div class="row"&gt; 
          &lt;div class="col-md-12"&gt;
            &lt;button id="registrsubmit" name="registrsubmit" value="true" class="friends_log pull-right"&gt;Register&lt;/button&gt;
          &lt;/div&gt;  
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The modal is not scrolling to top after a click. I tried scrolltop() method. It is not working . Can anyone help me on this?
  ![enter image description here][1]</p>