views:

39

answers:

1

I have this HTML:

<select multiple='multiple' size='3'>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    <option>5</option>
</select>

Using jQuery how do I force the scrollbar in the select to go to the top?

A: 
$("select").scrollTop(0)

Should work, and, depending upon your browser, might work. But I would not count on it. It does not work in Safari 4, but does work in Firefox 3.5.9

The Who