Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/10/2005, 03:04
angsanchez
 
Fecha de Ingreso: octubre-2004
Ubicación: España
Mensajes: 894
Antigüedad: 19 años, 7 meses
Puntos: 3
Probablemente es
document.plataforma
te falta hacer referencia al formulario (que no existe)
Código HTML:
<html>
<head>
<script type="text/javascript" >
function plataforma(){
if(document.forms.formuA.plataforma.value=='otro');
alert("hola");
}
</script>
<head>
<body>
<form name="formuA">
<select name="plataforma" onchange="javascript:plataforma()">
<option value="ps2-pc-rdvd">option1</option>
<option value="video">option2</option>
<option value="otro">option3</option>
</select>
</form></body></html> 
O, si no, hazlo con getElementById:
Código HTML:
<html>
<head>
<script type="text/javascript" >
function plataforma(){
if(document.getElementById("plataforma").value=='otro');
alert("hola");
}
</script>
<head>
<body>
<select id="plataforma" onchange="javascript:plataforma()">
<option value="ps2-pc-rdvd">option1</option>
<option value="video">option2</option>
<option value="otro">option3</option>
</select>
</body></html> 
__________________
Angel :cool: