Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/03/2006, 15:04
chefnelone
 
Fecha de Ingreso: diciembre-2005
Ubicación: Barcelona
Mensajes: 1.428
Antigüedad: 18 años, 4 meses
Puntos: 15
Prueva con esto , a mi me ha resultado

Copia y pega en pagina nueva para darte una idea.


<html>
<script>
var chk = 0
function hola() {
for (i=1;i<3;i++) {
if (document.getElementById('r'+i).checked==true) {
chk = 1;
}
}
if (chk==1) { }
else {alert("no has checkeado")}
}
</script>
<body>
<form name="form1">
<label>
<input name="RadioGroup1" type="radio" id="r1" value="radiobutton">
RadioGroup1</label>
<input name="RadioGroup1" id="r2" type="radio" value="radiobutton" >
RadioGroup2
<label>
<input type="button" name="Submit" value="Enviar" onClick="hola()">
</label>
</form>
</body>
</html>

saludos