Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/08/2008, 13:57
Avatar de Jocluis
Jocluis
 
Fecha de Ingreso: julio-2008
Ubicación: Lima
Mensajes: 25
Antigüedad: 15 años, 9 meses
Puntos: 0
Respuesta: Problema com combobox, no me muestra lo q selecciono de la opciones del mi

Fusionalo con esto..

Código HTML:
<html>
 <head>
  <script language="JavaScript">
   function cambia(){
    with (document.frm){
    // indice.value = String(selector.selectedIndex);
     opcion.value = selector.options[selector.selectedIndex].text;
     valor.value = selector.options[selector.selectedIndex].value;
	 
    }
   }
  </script>
 </head>
 <body>

  <form name="frm">
   
    Seleccione:<select name="selector" onChange="cambia()">
    <option>Seleccione un valor</option>
    <option value="1">Romantica</option>
    <option value="2">Comedia</option>
    <option value="3">Terror</option>
   </select>
   <br><br>
   
<!--Esto si kieres el indice-->
  <!-- Indice:<input type="text" name="indice"><br>-->
   
   Opcion:<input type="text" name="opcion"><br>
   Valor: <input type="text" name="valor"><br>
  </form>
 
 
 </body>
</html> 
suerte!