Ver Mensaje Individual
  #6 (permalink)  
Antiguo 25/11/2010, 15:03
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 16 años, 7 meses
Puntos: 1012
Respuesta: podría alguien revisarme esta función?

quitale las id a los radios, están repetidas. por otro lado pasale a la función otro valor (this.value)
Cita:
function Desplegar(rad, TABLA_FORMA_PAGO) {
var Tabla = document.getElementById(TABLA_FORMA_PAGO);
Tabla.style.display= rad=="EFECTIVO" ? "none" : "block";
}



<input name="RADIO_F_PAGO" type="radio" value="EFECTIVO" onclick="Desplegar(this.value, 'TABLA_FORMA_PAGO')">

<input name="RADIO_F_PAGO" type="radio" value="CHEQUE" onclick="Desplegar(this.value, 'TABLA_FORMA_PAGO')">

<input name="RADIO_F_PAGO" type="radio" value="TARJETA" onclick="Desplegar(this.value, 'TABLA_FORMA_PAGO')">

<table width="100%" cellspacing="0" cellpadding="0" id="TABLA_FORMA_PAGO" name="TABLA_FORMA_PAGO" style="display:none">