Ver Mensaje Individual
  #4 (permalink)  
Antiguo 10/11/2017, 14:25
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: Formulario y display rules.

Jquery nene:

MUESTRA

Código HTML:
Ver original
  1. <h5>Pracita Deportes:</h5>
  2. <input type="radio" value="si" id="si" class="deporteSi" name="deporte" checked="true">SI<br>
  3. <input type="radio" value="no" id="no" class="deporteNo" name="deporte">NO<br>
  4. <hr>
  5. <input type="text" name="deporte" id="deporte" placeholder="Deporte"/>


Código Javascript:
Ver original
  1. $("#no").click(function() {  
  2.       if($(this).is(':checked')) {  
  3.             $("#deporte").css('display','none');
  4.       }
  5. });
  6.  
  7. $("#si").click(function() {  
  8.       if($(this).is(':checked')) {  
  9.             $("#deporte").css('display','block');
  10.       }
  11. });
__________________
[email protected]
HITCEL