|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
drop down menu
is there a way to have the first option of a drop down menu be blank. so the user cannot see any writing without picking one:
ex menu: option1: option2:kdfdkf option3:farerjr option4:gar
__________________
"In theory, there is no difference between theory and practice. But, in practice, there is."
|
|
#2
|
||||
|
||||
|
Yes there is a way.
Code:
<select> <option> </option> <option>option1</option> <option>option2</option> </select> Now I always liked to something like this. So there is just no blank spot in the drop menu. But it is whatever you like. Code:
<select> <option>--</option> <option>option1</option> <option>option2</option> </select> have fun. see ya ![]() |
|
#3
|
|||
|
|||
|
Thank you for your reply.
I have the following code Code:
Highest Level:<br/> <select name = "Level"> <option> </option> <option value ="rep"> Representative <option value ="Manager">Manager <option value ="Owner">Owner <option value ="Investor">Investor <option value ="Other">Other </select> <p/> it works well in netscape however in IE, the latest. The first value is always present. I even tried Code:
<option></option> I really don't like IE. ![]() |
|
#4
|
||||
|
||||
|
Try adding a value="" to it like this:
Code:
<option value=""> </option> |
|
#5
|
||||
|
||||
|
Well I copyed your code, and what you have works just fine in ie 6.0, so I don't know really. But I did notice that on your code.
Code:
Highest Level:<br/> <select name = "Level"> <option> </option> <option value ="rep"> Representative <option value ="Manager">Manager <option value ="Owner">Owner <option value ="Investor">Investor <option value ="Other">Other </select> <p/> on the first option the  , you forgot the ;. But I am sure that is just a type o. But anyways |
|
#6
|
|||
|
|||
|
That is weird. I changed the code again and it seems to work i don't know what i could have done wrong. but i thank you for your help anyway.
can you tell now why the following code won't allow me to link to the contact.htm page. are buttons not used like that in IE Code:
<a href = "contact.htm"> <input type ="button" value ="GET STARTED NOW"> </a> |
|
#7
|
|||
|
|||
|
I'm not totally sure but i think maybe
Code:
<a href = "contact.htm"
input type ="button"
value ="GET STARTED NOW"> </a>
|
|
#8
|
||||
|
||||
|
Well when you have that, you got to tell the input button what to do when the user click's on the button. So to fix that is what is below.
Code:
<input type="button" value="GET STARTED NOW" onClick="window.location='contact.htm'"> Anyways, I am going to go to bed now. I hope that works for ya, tell me if that works for ya. If not, I am sure we can think of another way to get around that. See ya ![]() Last edited by Zao : April 10th, 2004 at 05:17 AM. |
|
#9
|
|||
|
|||
|
Thanks guys. zao that code fixed it up in IE for me. so whenever I use a button to relocate i should use the on.click attribute instead of a nested script huh? Thanks I never found that in my tutorial.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > drop down menu |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|