![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
24/10/2010, 07:56
|
![Avatar de hoberwilly](http://static.forosdelweb.com/customavatars/avatar246730_1.gif) | | | Fecha de Ingreso: julio-2008 Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 16 años, 7 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, |