vorrei che selezionando un combo mi riempisse una variabile input.
io ho fatto così ma non funziona, perchè nella variabile lange
continua a mettere il valore selezionato dalla lettura del record, in poche parole è come se io non cambiassi con il mouse la selezione..
Penso che il problema non sta in javascript ma in asp..
<form name="modifica" method="POST" action="scrivimodifica.asp">
<select size="1" cols="4" name="linguaccia" onchange="this.form.langue.value=this.form.linguac cia.options[this.form.linguaccia.selectedIndex].value">
<OPTION Value=<%=objrs("lang")%>
<%if objrs("lang")="i" then%>
selected
<%end if%>>Italiano
<OPTION Value=<%=objrs("lang")%>
<%if objrs("lang")="p" then%>
selected
<%end if%>>Portoghese
<OPTION Value=<%=objrs("lang")%>
<%if objrs("lang")="s" then%>
selected
<%end if%>>Spagnolo
<OPTION Value=<%=objrs("lang")%>
<%if objrs("lang")="e" then%>
selected
<%end if%>>English
</select>
<input name="langue" size="1" type="text" />
....
</FORM>
ciao Luisa

Rispondi quotando