Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/07/2002, 17:37
Avatar de atlante
atlante
 
Fecha de Ingreso: julio-2002
Ubicación: Lima
Mensajes: 140
Antigüedad: 22 años, 7 meses
Puntos: 0
Re: Combos Independientes

Bueno esta forma es un poco larga pero te puede servir

codigo:
Código:
<html>
<head>
<script language="javascript1.2">
<!--
function LP_change(mode){

var num=mode;

with(abc){

switch(num){

case 0:
sel.options[0].text="opcion 1";
sel.options[1].text="opcion 2";
sel.options[2].text="opcion 3";
break;
case 1:
sel.options[0].text="opcion 4";
sel.options[1].text="opcion 5";
sel.options[2].text="opcion 6";
break;
case 2:
sel.options[0].text="opcion 7";
sel.options[1].text="opcion 8";
sel.options[2].text="opcion 9";
break;
case 3:
sel.options[0].text="opcion 10";
sel.options[1].text="opcion 11";
sel.options[2].text="opcion 12";
break;
}}
}
-->
</script>
</head>
<body>
<form name="abc">
<select name="alter" onChange="LP_change(this.options.selectedIndex)">
<option>opcion 1
<option>opcion 2
<option>opcion 3
<option>opcion 4
</select><br>
<select name="sel">
<option>opcion 1
<option>opcion 2
<option>opcion 3
</select>
</form>
</body><html>
personalizar:veras todo depende de la opcion seleccionada el el primer combobox
luego sustituye las opciones en el script
numeradas de 1 a 12 cada tres forman un combo nuevo,los nombres de los select no deben se cambiados .