Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/06/2009, 13:57
Avatar de sneyder05
sneyder05
 
Fecha de Ingreso: enero-2009
Ubicación: Cali
Mensajes: 172
Antigüedad: 15 años, 4 meses
Puntos: 17
De acuerdo Respuesta: seleccionar lista desplegable

Prueba este codigo:

Código PHP:
<html>
<
head>
    <
script type="text/javascript">
        
window.onload=function(){
            
//Deshabilitar los selects al cargar el DOM
            
document.getElementById('select1').disabled=true;
            
document.getElementById('select2').disabled=true;
        }
        function 
seleccionar(selectEnabled,selectDisabled){
            
document.getElementById(selectEnabled).disabled=false;
            
document.getElementById(selectDisabled).disabled=true;
        }
        
document.getElementsByName('opcion').onclick=function(){
        }
    
</script>
</head>
<body>
    <br>Selecciona:<br>
    <input type="radio" name="opcion" value="1" onclick="seleccionar('select1','select2')"/>
    <input type="radio" name="opcion" value="2" onclick="seleccionar('select2','select1')"/>
    <br>Combos<br>
    <select id="select1">
        <option>Ocpion 1</option>
        <option>Ocpion 2</option>
    </select>
    <br><br>
    <select id="select2">
        <option>Ocpion 1</option>
        <option>Ocpion 2</option>
    </select>
</body>
</html> 
Salu2