You need to sign in to do that
Don't have an account?

Auto scroll-down to bottom of the component
I have a lightning component in which there is a button which loads some new divs on click of the same button. What I want to implement is that it should auto scroll-down to the bottom of the page and should show those new divs itself(without scrolling the page). So that I don't have to manually scroll down to the bottom of the page.
Any help would be greatly appreciated! Thanks!
Any help would be greatly appreciated! Thanks!
2. You can also create the dynamic divs with id as '#1' or your favorite name and inside the javascript use like below: Hope the above answer helps and please mark as correct answer so others can benefit from it.