I am using the jscrollpane plugin for a custom scrollbar. What i cant accomplish is to initialize at the bottom i.e whenever that window is loaded it should be auto scrolled to the bottom. Any help is greatly appreciated.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because you might have multiple
jScrollPaneelements in your website you need to iterate through all of them and callscrollToBottomto move the scroll bar to the bottom:But of course if you want to move the scroll bar to the bottom of one specific jScrollPane instance
#myJScrollPaneuse this:Example:
I updated the demo created by @scessor. Click here to see it.