Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get value of select into hidden text box

Status
Not open for further replies.

lorca

Technical User
Dec 20, 2005
64
GB
Hi
How can you get the value of a select box into a hidden text box please ?

thanks
ian
 
used this................thanks

Code:
LPRSearchHead = "<script language=""JavaScript"" type=""text/javascript"">" & VBCRLF
LPRSearchHead = LPRSearchHead & "function onChangeCombo() {" & VBCRLF
LPRSearchHead = LPRSearchHead & "var Current = document.form1.LicType.selectedIndex;" & VBCRLF
LPRSearchHead = LPRSearchHead & "document.form1.LicType.options[Current].text;" & VBCRLF
LPRSearchHead = LPRSearchHead & "document.form1.txtLicType.value = document.form1.LicType.options[Current].text;"
LPRSearchHead = LPRSearchHead & "}</script>" & VBCRLF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top