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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Blank entry in combo box

Status
Not open for further replies.

Syerston

Programmer
Jun 2, 2001
142
GB
Hello everybody

Is there an easy way to ensure when the page loads any combo boxes populated from recordsets appear as blank entries until the user clicks the arrow.

John
 
Yea
I had thought of that too but I thought there might be a better way.

Thanks anyway

John
 
Why not just put, as the first option, "Select Option" or something like that.

I use DTC's in Visual Interdev using the "AddItem" method and they always come up blank until clicked on.

Rob
Just my $.02.
 
only way to make an empty drop down selection is to use the <option></option> otherwise there is no 'blank' value inthe box for the box to be empty

i guess you could default diable all of the boxes, that way nothing appears, and when the page loads to an onload and undisable them all but that's messy and alot more code than adding one line to each select
 
You could create a javascript array to hold the options value and text, then when the user clicks the appropriate place call a function to add the options to the drop down based on the contents of that array. Similar to how you link several dropdowns together, but with only a single dropdown and a 1-dimension array.

-Tarwn

01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
Do you know how hot your computer is running at home? I do
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top