Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/03/2015, 10:19
Avatar de NueveReinas
NueveReinas
 
Fecha de Ingreso: septiembre-2013
Ubicación: No tan Buenos Aires
Mensajes: 1.101
Antigüedad: 10 años, 8 meses
Puntos: 145
Respuesta: Radiobuttons dependientes

Quizá esto te sirva: http://jsfiddle.net/kvhqnfre/

Código HTML:
Ver original
  1. <input type="radio" value="AAA" id="1"> AAA <br>
  2. <input type="radio" value="BBB" id="2"> BBB <br>
  3. <input type="radio" value="CCC" id="3"> CCC
  4. <br>
  5. <br>
  6. <div id="log"></div>

Código Javascript:
Ver original
  1. $('input').click(function() {
  2.    
  3.    if($('input').is(':checked')) {
  4.        $('input').attr('disabled', true);
  5.        $(this).attr('disabled', false);
  6.    }
  7.    
  8.     $( "#log" ).html( $( "input:checked" ).val() + " está seleccionado, los otros 2 botones están deshabilitados");
  9.    
  10. });

Saludos.
__________________
¿Te sirvió la respuesta? Deja un +1