se lo script ASP stampa una select devi fare così
L'ho provato e funziona
<SCRIPT language="javascript">
function Stampa() {
document.getElementById('telefono').value="ciao"
}
</script>
<html>
<body >
<table width="100%" ID="Table3">
<tr>
<td id="td1001" class="titoli">Gestione Centri di Costo</td>
</tr>
</table>
<form method="POST" action="centridicosto.asp">
<table border="0" width="100%" class="dialog" >
<tr>
<td id="td1004">Numero di Telefono:</td>
<td align="left"><select onchange="Stampa()">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
<input type="submit" class="btn" value="Edita" name="edita">
</td>
<td><input type="submit" class="btn" value="Cancella" name="cancella"></td>
</tr>
</table>
</form>
<form method="POST" action="centridicosto.asp" >
<table border="0" width="100%" class="dialog" >
<tr>
<td id="td1001" width="30%">Numero di Telefono:
</td>
<td>
<input id="telefono" type="text" class="indent" name="tel" size="12" value=" ">
</td>
</tr>
<tr><td id="td1002">Centro di Costo:</td>
<td align="left">
<input id="cdc" type="text" class="indent" name="cdc" size="10" maxlength="10" value=" ">
</td>
</tr>
<tr>
<td id="td1003">Descrizione:</td>
<td align="left">
<input id="des" type="text" class="indent" name="des" size="30" maxlength="30" value=" ">
</td>
</tr>
![]()


Rispondi quotando

