![]() Topic awaiting preservation: How to show select option value in text box? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: NZ |
![]() 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 |
![]() 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 |
![]() quote:
|
Paranoid (IV) Inmate From: NZ |
![]() 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 |
![]() oops... sorry 'bout that |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() Use .text instead of .value. |
Bipolar (III) Inmate From: Born in Dublin, Ireland .:. now living in the US |
![]() 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? |