Tema: radio button
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/12/2010, 09:04
Avatar de alfcm
alfcm
 
Fecha de Ingreso: mayo-2009
Mensajes: 291
Antigüedad: 15 años
Puntos: 7
Respuesta: radio button

puedes trabajar con los eventos de los controles, ejemplo

Código HTML:
Ver original
  1. <input type='radio' name='abc' onclick='cargaselect("x")' />VALOR X
  2. <br/>
  3. <input type='radio' name='abc' onclick='cargaselect("y")' />VALOR Y

Código Javascript:
Ver original
  1. function cargaselect(parametro){
  2. switch(parametro){
  3.       case 'x':  alert('cargo mi select tomando x'); break;
  4.       case 'y':  alert('cargo mi select tomando y'); break;
  5. }
  6.  
  7. }

Espero te ayude

Saludos