Ver Mensaje Individual
  #7 (permalink)  
Antiguo 06/11/2008, 15:11
vmac179
 
Fecha de Ingreso: julio-2007
Ubicación: /home/victor
Mensajes: 114
Antigüedad: 16 años, 9 meses
Puntos: 0
Respuesta: boton solo si select acitvo

Código PHP:
<script>
select.onchange = function() { 
boton.disabled = (select.selectedIndex==-1); 
}
</script>


<select name="select" id="select">
<option value="" selected>Seleccione</option>
<option value="1" selected>Seleccione</option>
<option value="2" selected>Seleccione</option>
<option value="3" selected>Seleccione</option>
</select>

<button id="boton">nada</button> 
???