ssreevidya.m 0 Light Poster

Hi,
I have a listbox with databinding . It has more then 15 items .

And I need to auto scroll to the selected item may be item 10 in the code file
I used a jQuery like

<script type="text/javascript" language="javascript">
         function LstFocus() {
             $('#<%= LstBoxClasType.ClientID %>').find(':selected').filter(':first').focus().attr("selected", true);
         }

    </script>

But it work in mozilla firefox only and not not work in IE.
How can I do that ?

Thanks in advance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.