2017  Kodetalk | Feedback | Privacy Policy | Terms | About

How to use jquery scroll to bottom of div animate

I have problem like i want scroll bar at bottom of the div and the containt of the div is dynamic. Means the conatint of the div will get from server once the complete page is loaded. But for me once the containt loaded from server the scroll bar not coming to bottom of the div. Any solution for this situation.

Try below code to solve your problem:

        scrollTop : $('#divid').prop("scrollHeight")
    }, $('#divid').get(0).scrollHeight);

Answer is