I have one <div> with overflow:auto. This <div> contains a <form> with a Search bar.
I am displaying the records fetched, in the same form, now all I need is to scroll the <div> (where my search results start displaying) to the top of its container <div> (and not to the top of the page).
check the jsfiddle created. http://jsfiddle.net/tusharjs/wGUE2/15/
Here, I have tried a solution I found on stackoverflow, but it scrolls the desired <div id="scrollto"> to top of page and not to the top of the <div id="maincontent">.
Thanks
<div id="scrollto">you will find that, it is scrolled to top. I want its top to start from the<div id="maincontent">. Clear?