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

Instead of drop down list, can I create a drop down table?

Status
Not open for further replies.
Nov 28, 2002
121
US
I'd like the user to be able to scroll through a drop down list with multiple fields in a table. Is that even possible?
I have not found an example of that yet.
 
You can always concatenate your display values.

<select>
<option>Value 1 - Desc 2</option>
<option>Value 1 - Desc 2</option>
</select>
 
You can open up in a pop-up window a tiny HTML table, by simply making a barebones HTML page of that table.

If you want it to look like a drop-down menu, with the arrow and such, well, you can either make a little graphic (many people take this route) or you can just use an actual drop-down widgit, but deactivate it while using the onClick method to pop your preferred table. I'd suggest option "A", just because "B" breaks the perceived functionality and "A" is what people usually expect (think of calendar-picking widgets).

Hope that was helpful!

Cheers,

[monkey] Edward [monkey]

"Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door
 
Or you can use a "floating" div that you hide and show when needed.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
If you want to do what I think you want to do (have columns in your drop-downs), check out this thread from March:

thread215-1033046

Hope this helps,
Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top