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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.