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!

Programatically open the drop down list.

Status
Not open for further replies.

giordan0

Programmer
Jul 18, 2001
40
SI
I want to open a drop down list programmatically.
My combo box is hidden till the user clicks on an image. Then I show the combo box and want to open its list automatically.
 
you cant bring up thr drop down list but you can either select a certain value or scroll one into view if using a select with size>1
 
I found a very best solution.
I put an Input tag on the HTML page.
On the right I put an img very like the combo box's "down arrow" .
In the next line I put a Select TAG with rows 8.
It produces a standard list.
in the begining this list has display:none.
When I click the arrow img the select became display:inline. When I choose something from the list, I set the value of the Input and I hide the list again.
Quite similar to a Combo box.
Just a little javascript code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top