p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Basics (http://p2p.wrox.com/forumdisplay.php?f=61)
-   -   Set Default selection in ListBox (http://p2p.wrox.com/showthread.php?t=37456)

nmreid January 20th, 2006 04:49 PM

Set Default selection in ListBox
 
I've created a listBox in a form. I can get the index of the selected option using "listId = document.form.list.selectedIndex" and that works fine.

BUT - how do I get it to work in reverse and set the selected option with a parameter passed to the page? (e.g. page.asp?ListId=3 )

I think it's something like document.form.list[ListId].Selected=True
but whatever I do I just can't get this to work.

Any help gratefully appreciated.


All times are GMT -4. The time now is 05:01 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.