Question : How to set scroll position of a datalist inside a div tag using javascript?

Hai,
  I had developed a web application in C#ASP.net 1.1.In my application there are several pages.
and my application has Ajax code using javascript.
  In Page A,there is a datalist inside a div tag and div tag style is overflow.Datalist binds and show some element required.The Element binded in the datalist has sub-elements and has been added when the elements is clicked in the datalist.The sub-elements are get from Page B using Ajax code.
  My Problem,I needed to set only one other item is showing above?That means,
  If the datalist contains 36 items and each item has its sub-item.
For example, The 36 items are 1 to 36 item and I need to show,if user clicks 3rd item,I need to show 2nd on Top and 3rd get focused in the datalist .which item the user clcked the previous item is shown top and clicked item is focus
  How to set the scroll psition of a datalist inside a div tag?
Plz send some sample code to solve this problem.........
         
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:

Answer : How to set scroll position of a datalist inside a div tag using javascript?

Random Solutions  
 
programming4us programming4us