Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/10/2010, 07:56
Avatar de hoberwilly
hoberwilly
 
Fecha de Ingreso: julio-2008
Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 15 años, 10 meses
Puntos: 2
Respuesta: Paso de Parametros - Evento OnClick

Se agradece zerokilled, pude dar con la solucion.

Dejo el codigo:

function aceptar(obj1,obj2){
document.frm.rate_id_amount2.value=obj2;
var ii = 0;
*****************valido el radioboton*******************
for (var i=0;i<obj1.length;i++){
if (obj1[i].checked){
ii = 1;
break;
}
}
if (ii == 0){
if (document.frm.rate_id_amount2.value=="") { ***********************valido el campo de texto****************
}
}
}


Y el boton input:

<input type="button" value="Aceptar Pago" id="cmdAceptar" name="cmdAceptar" language="javascript" onClick="return aceptar(rate_id_amount,rate_id_amount2.value);">


Saludos,