English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi, I'm trying to create a dropdown selector for a web page in HTML that I'd like to

1) Prompt the user for what it's looking for
2) NOT have the prompt be part of the options list.

Typically, this is accomplished using code like this:



If this code is used, it produces a dropdown box that prompts the user for "Which vehicle do you drive?" and the user can select. My issue with this method is that the user can select "Which vehicle do you drive?" as an option.

Is there any way to prompt the user for their input in a dropdown (select) box WITHOUT the prompt being part of the options?

Thanks!

2007-05-25 23:21:12 · 3 answers · asked by Mike Z 5 in Computers & Internet Programming & Design

Ah... I forgot to mention - I'd like to not have a label or prompt OUTSIDE OF the control... in other words it shouldn't look like:

What vehicle do you drive:
[Car \/]




It should look like this:

[What vehicle do you drive: \/]

Any ideas? I think it needs to be done with CSS or Javascript, but I don't know how - If anyone knows, I'd be grateful...

Thanks -

Mike Z

2007-05-27 10:08:49 · update #1

3 answers

I think you are looking for something like this:









(I tried to make it as simple as possible)

2007-05-30 09:57:35 · answer #1 · answered by wi_guy 2 · 0 0

You should use label. In this case:

2007-05-25 23:28:07 · answer #2 · answered by TBS 3 · 0 0

I had a similar virus once, which changes my background on every start up to an image saying "you have a virus and you better have an anti-virus or any virus removal. I got rid of it by installing 30 day trial Kaspersky anti-virus 2008 and updating it's database.

2016-05-18 01:21:32 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers