Ver Mensaje Individual
  #6 (permalink)  
Antiguo 07/06/2007, 15:16
rlobos
 
Fecha de Ingreso: enero-2005
Mensajes: 105
Antigüedad: 20 años
Puntos: 2
Re: Select en problemas

Uff, ahora Si
A ti no te fuincionaba en Firefox yo lo probaba en explorer y no tenia problemas, bueno en todo caso aqui va nuevamente, espero el definitivo.






<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<div id="opciones" align="center">Perro</div>
<script>
var campo = document.getElementById("opciones");

function muestraSeleccion(texto)
{
campo.innerHTML=texto;
}
</script>
<form name="ejemplo" method="post" action="" target="">
<table>
<tr>
<td>Opcion</td>
<td>
<SELECT NAME="animales" onChange="muestraSeleccion(this.value)" SIZE="1">
<OPTION VALUE="Perro">Perro
<OPTION VALUE="Gato">Gato
<OPTION VALUE="Vaca">Vaca
<OPTION VALUE="Caballo">Caballo
</SELECT>
</td>
</tr>
</table>
</form>
<script language="javascript">
document.ejemplo.animales.selectedIndex = 0;
</script>
</body>
</html>


Chau