You can set the scrollTop element that contains this element. And the installation value is actually the top position of this element, which can be obtained using $(element).position().top .
So you need the code:
$j(scrollable_div).scrollTop($j(other_element).position().top)
NOTE. You needed to find the offset between the element containing the other_element and the top of the page so that it could scroll precisely.
source share