![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
01/07/2008, 03:22
|
| | Fecha de Ingreso: julio-2008
Mensajes: 2
Antigüedad: 16 años, 7 meses Puntos: 0 | |
Respuesta: Problemas con select multiple Prueba con esta función:
function cambia_datos(){
objCboOrigen = document.frmnormalizar.pais;
objCboDestino = document.frmnormalizar.res_temas;
for (var i=0; i<objCboOrigen.options.length; i++){
if(objCboOrigen.options[i].selected == true){
objCboDestino.add(new Option(objCboOrigen.options[i].text,objCboOrigen.options[i].value));
}
}
/*
for (var i=0; i<objCboOrigen.options.length; i++){
if (objCboOrigen.options[i].selected ){
objCboOrigen.remove(i);
i = i - 1 ;
}
}
*/
} |