Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrolling a Select object to a desired value

Status
Not open for further replies.

drdexter33

Programmer
Joined
Jun 11, 2003
Messages
17
Location
US
Is there a way to scoll a HTML SELECT Object using JavaScript?

<select id="cboNames" multiple="true" class="cboMultiple" style="width: 197px; height: 250px">
</select>


I am using the cboNames.options.selectedIndex property but it isn't working.


thanks.

doug
 
I don't believe you can do this successfully cross-browser. You might be able to use scrollIntoView with the option elements in IE, but I doubt it.

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top