Scroll to a div contained in a overflow:auto

Posted by Dario on Stack Overflow See other posts from Stack Overflow or by Dario
Published on 2010-04-02T21:58:07Z Indexed on 2010/04/02 22:03 UTC
Read the original article Hit count: 261

Filed under:
|
|

Hello

i have this:

<div id="parent" style="overflow:auto">
   ...
   <div id="test">Hello</div>
   ...
</div>

My question is: how to scroll parent div to have test div as first line of parent ?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript