Ver Mensaje Individual
  #6 (permalink)  
Antiguo 30/03/2006, 15:33
marws
 
Fecha de Ingreso: marzo-2006
Mensajes: 2
Antigüedad: 18 años, 1 mes
Puntos: 0
OLA, soy nuevo no foro e no hablo muy castelãno

como puedo hacer eso

for ( var i = 70; i < 72; i++ )
{
if (!validarBotonRadio(i))
alert("1")
{
alert("no ha terminado la Evaluación" ) ;
return false;
}
}
//alert("Evaluacion Completa" );
//return true;
}
function validarBotonRadio(i)

{
alert("2")
x = document.theForm["test_"+i+"_rp"];
//alert(document.theForm["test_"+i+"_rp"])
for ( k = 0; k < x.length; k++ )
alert("test_"+i+"_rp"+k)
{
if ( x[k].checked )
alert("OIOIOI")

{
return true;
}
}
return false;
}

meu html es eso
<form name="theForm" action="b" method="post" onSubmit="return checa(this);">
<input type="radio" name="test_70_rp">
sim<br>
<input type="radio" name="test_70_rp">
nao<br>
<br>
<input type="radio" name="test_71_rp" >sim
<input type="radio" name="test_71_rp">nao<br><br>
<input type="radio" name="test_72_rp">sim
<input type="radio" name="test_72_rp">nao<br><br>
<input name="responder" type="submit" onClick="return validar(this)" value="responder">
</form>

gracias pela a ayuda e