Topic awaiting preservation: How to show select option value in text box? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: NZ |
posted 06-11-2003 05:19
Hi, guys. How are you? code: document.theForm.result.value=document.theForm.month.selectedIndex +"Year " + Result;
code: function cal(){
|
Paranoid (IV) Inmate From: Sthlm, Sweden |
posted 06-11-2003 09:32
To get at the different things in a drop-down select you have this to play with: code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 06-11-2003 17:20
quote:
|
Paranoid (IV) Inmate From: NZ |
posted 06-11-2003 23:34
Hi, Dms, Hi, Slime. code: document.theForm.result.value=document.theForm.dropDownBox.options[document.forms[0].dropDownBox.selectedIndex].value +"Year " + Result;
code: document.theForm.result.value=document.theForm.month.selectedIndex +"Year " + Result;
|
Paranoid (IV) Inmate From: Sthlm, Sweden |
posted 06-12-2003 17:25
oops... sorry 'bout that |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 06-12-2003 19:45
Use .text instead of .value. |
Bipolar (III) Inmate From: Born in Dublin, Ireland .:. now living in the US |
posted 06-14-2003 05:03
I had a few beers, so I'm probably not following this correctly. You want to show the "Select Option" without it having a link? Correct? Maybe, I don't know. Anyway, just use # for the option and it will stay where it is. Ok, back to the beer, it's a nice rainy night out, what else am I going to do? |