Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/06/2010, 12:21
Avatar de _cronos2
_cronos2
Colaborador
 
Fecha de Ingreso: junio-2010
Mensajes: 2.062
Antigüedad: 13 años, 10 meses
Puntos: 310
Respuesta: Como inhabilitar CAMBIO de OPTION en SELECT? (pero enviar VALOR !!)

Código HTML:
Ver original
  1. <form method="get" action=''>
  2.  <select name="zzz" onchange='noCambia(this);'>
  3.   <option value="111">111</option>
  4.   <option value="222" selected="selected">222</option>
  5.   <option value="333">333</option>
  6.  </select>
  7.  <input type="submit" value='Enviar' />
  8. </form>
Código Javascript:
Ver original
  1. function noCambia(select){
  2.  if(select.selectedIndex!=1){
  3.   select.selectedIndex=1;
  4.  }
  5. }

Saludos (: