My view contains a lot of content, and I wish to give the user shortcuts to scroll to specific parts of the page.
I see that it's possible to scroll using scrollTo, but the value has to be given as a number. As screen sizes vary I don't know the specific height values for the different places I wish to scroll.
Is there a smart way to for example scroll to the element with id="ScrollPosition1"?
I see that it's possible to scroll using scrollTo, but the value has to be given as a number. As screen sizes vary I don't know the specific height values for the different places I wish to scroll.
Is there a smart way to for example scroll to the element with id="ScrollPosition1"?