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

Auto expand listbox

Status
Not open for further replies.

I assume you want to have a select box dropping down automatically, as if it had just been clicked?

AFAIK, this cannot be done using standard select boxes.

Hope this helps,
Dan

 
I'm coming to the same conclusion after searching for hours. Do you have any pointers about how to tabulate data within a drop down box. Would layers be the way to go?

 
Referring to your origin question, if you had several arrays of data, depending on the first option, you could populate a second select box using the appropriate array.

Can you explain in a little more detail exactly what you are trying to do? Perhaps with some text to describe the layout?

The only way you can "tabulate" data in a select box, is vertically using the OPTGROUP option. Try:
Code:
<select>
<optgroup label="People">
<option>Thomas Edison</option>
<option>Albert Einstein</option>
<optgroup label="Coutries">
<option>England</option>
<option>France</option>
</select>
Hope this helps.

Pete.


Web Developer & Aptrix / IBM Lotus Workplace Web Content Management (LWWCM) Specialist
w: e: Pete.Raleigh(at)lclimited.co.uk
 
Tabulate date as in ...
John Smith john@web.com
Joe Bloggs joe@someweb.com

so the emails line up.
But it doesnt matter, I found some javascript code that with some modification does just this.

 

>> I found some javascript code that with some modification does just this.

Can you post it, or a link to it, so that anyone else with the same issue knows how you solved it?

Thanks!
Dan
 
Sounds like you are asking for something like: thread215-844158

Pete.


Web Developer & Aptrix / IBM Lotus Workplace Web Content Management (LWWCM) Specialist
w: e: Pete.Raleigh(at)lclimited.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top