Hi everyone.

I have a div in a page with divs inside it and when an action happens in the page I want to bring an inner div to the top with script (depending on the action).

Here is what the HTML looks like:

Code:
<div style="overflow: auto; height: 10px;" id="container">
<div id="first">Content</div>
<div id="second">Content</div>
<div id="third">Content</div>
<div id="fourth">Content<div>
</div>
Now how do I bring the div that has id == "fourth" into view via JavaScript?

I tried to set the scrolltop to 0 for the div with id == "fourth" without success.

Thanks.

chrizbot