View Full Version : DropDown List
pwtucker
10-07-2003, 05:15 AM
I would like for this drop down box to be blank when the page is loaded. What is the easies way to accomplish this. This has to be easy and I am just making it hard. Here is my code. Thanks for the help.
Do while NOT rsLightNo.eof
Response.Write "<OPTION VALUE = '" & rsLightNo("LightNumber") & "' SELECTED>"
Response.Write rsLightNo("LightNumber") & "</Option>"
rsLightNo.MoveNext
Thanks,
Paul[:)]
pwtucker
10-07-2003, 05:34 AM
Okay...I was right. I was making it to hard, but I do have another question. I noticed in asp/html that you can not type in the drop down boxes. Is there away around this? I have a rather lengthy drop down that I would like the user to be able to type in to narrow the list down to where they want to go. Any advice would be great.
Thanks,
Paul
steurm
10-07-2003, 07:20 AM
there is no manner to do this very easily I'm affraid. If you want the user to type in several characters and let him jump into the dropdownlist to his selection, you will have to do some client side scripting. Try google to find yourself a solution for this.
However, if 1 character is sufficient to jump to (the first character of the selection), then no scripting is needed !
Just select the dropdownlist, type in the first character and you will jump to the first option with this character.
--
Steurm
www.steurm.net/steurm
vBulletin® ©Jelsoft Enterprises Ltd.