dividi

dividi

// Valores asociado a la sexta opción del primer select (Mecanica) fila11= new Array(); fila11=""; fila11="1"; fila11="2"; fila11="3"; fila11="4"; fila11="5"; fila11="6"; fila11="7"; fila11="8"; fila11="9"; fila11="10"; // valores posibles del tercer
 Buenos Aires, Argentina @dividi desde - visto

Experiencia

// Valores asociado a la sexta opción del primer select (Mecanica)
fila11= new Array();
fila11[0]="";
fila11[1]="1";
fila11[2]="2";
fila11[3]="3";
fila11[4]="4";
fila11[5]="5";
fila11[6]="6";
fila11[7]="7";
fila11[8]="8";
fila11[9]="9";
fila11[10]="10";
// valores posibles del tercer select
columna1= new Array();
columna1[0]="";
// FIN DEL MODIFICADO
// Array de filas de opciones
valores2= new Array();
valores2[0]=fila1;
valores2[1]=fila2;
valores2[2]=fila3;
valores2[3]=fila4;
valores2[4]=fila5;
valores2[5]=fila6;
valores2[6]=fila7;
valores2[7]=fila8;
valores2[8]=fila9;
valores2[9]=fila10;
valores2[10]=fila11;
// Escribe el código HTML correspondiente a las opciones del Select1
function escribeopcionesselect(valores1)
{
for (var i=0;i<valores1.length;i++)
{
window.document.write('<OPTION VALUE="'+valores1+'">'+
valores1+'</OPTION>');
}
}
function cambiaselect3(form,nombreo,nombred,valores2)
{
// Obtención del índice activo en el primer select
var cadena="form."+nombreo+".selectedIndex";
var indice=eval(cadena);
// Obtención del objeto que representa al segundo select
var aux='form.'+nombred;
objeto=eval(aux);
// Actualización de las opciones posibles del segundo select
objeto.length=valores2[indice].length;
for (var i=0; i<valores2[indice].length;i++)
{
objeto.options.text=valores2[indice];
objeto.options.value=valores2[indice];
}
// Se activa la primera opción del segundo select
objeto.selectedIndex=0;
}
</SCRIPT>

Aún no ha realizado ninguna actividad pública.