Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/06/2002, 02:56
Avatar de KarlanKas
KarlanKas
Moderador extraterrestre
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 22 años, 4 meses
Puntos: 61
Re: valor de variable

A ver si este código que te propongo te sirve de algo. Funciona en IE y en NS a partir del 6.0:

-------------
<html>
<head>
<title>Prueba</title>
<script language="Javascript" type="text/javascript">
<!--
function escrito(numerito){
document.getElementById('mensaje').innerHTML=&quot ;Has elegido el número "+numerito+".";
}
//-->
</script>
</head>

<body>

<form id="encuesta" action="">
<select id="fecha" name="dia">
<option value="1">1</option>
<option value="2">2</option>
</select>
<input type="button" value="pinchame" onclick="escrito(document.getElementById('fec ha').value);">
</form>
<div id="mensaje"></div>
</body>
</html>
-----------------

Cualquier otra cosa preguntas... ;)

<embed width="136" height="28" src="http://www.webareyou.com/karlankas.swf"></embebed>