PDA

Click to See Complete Forum and Search --> : Dropdown list box quick question


robm_01
Nov 23rd, 2004, 10:36 AM
Hi,

Is it possible to have a drop down list box already open on page load and for it to close as usual when a selection is made, rather than to click on it to open it?

it is because I have limited space on the page to put the drop downs elsewhere and the postion its in now is not always obvious to the viewer as to what to do next. If it was already open with the categories displayed it might make it easier.

the link below to demonstrate the issue.

http://www.imagerealm.co.uk/search_f1.asp

many thanks,

Rob.

Jop
Nov 23rd, 2004, 10:55 AM
You can't do this with a normal combobox, you could emulate a combobox with a div and css, and hide/show that one with display: none;/display: block;

robm_01
Nov 23rd, 2004, 11:10 AM
Jop,

do you have a demo example I could see and the code to go with? as I'm not sure how to do this.

Cheers Rob.

Jop
Nov 23rd, 2004, 11:21 AM
I have to leave now, so I did a quick google search:
http://www.google.com/search?q=show+hide+div+css&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official

and this came up
http://www.csscreator.com/css-forum/ftopic1263.html

Think those links should get you started!