jquery - scroll to top of a bootstrap modal on click of a button in modal -


<div class="modal-dialog" role="document">   <div class="modal-content login conatct_main" id="mdlcont">     <div class="modal-body">       <div class="row">          <div class="col-md-12">           <button id="registrsubmit" name="registrsubmit" value="true" class="friends_log pull-right">register</button>         </div>         </div>     </div>   </div> </div> 

the modal not scrolling top after click. tried scrolltop() method. not working . can me on this? ![enter image description here][1]

wow! coincidence, did today morning. need is:

// before calling modal window... $("#modalid").scrolltop(0); 

also using bootstrap's modal window events api, can this:

$('#modalid').on('shown', function() {     $(this).scrolltop(0); }) 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -