Código (html4strict) [Seleccionar]
<html>
<head>
<title>ASD</title>
<script language="javascript">
function validateCheckBox( objForm ) {
var numRadio = document.Form1.rdoTipo.length;
var checkRadio = document.Form1.rdoTipo;
var stateReturn = 0;
for( var i=0; i<numRadio; i++ ){
if( checkRadio[i].checked ){
stateReturn += 1;
}
}
return ( stateReturn > 0 )?true:false;
}
</script>
</head>
<body>
<form name="Form1" name="Form1" onSubmit="return validateCheckBox(this);" method="POST">
<p align="center">
<input type="radio" name="rdoTipo" id="rdoTipo" value="0" /> Sin foto
<input type="radio" name="rdoTipo" id="rdoTipo" value="1" /> Foto vertical
<input type="radio" name="rdoTipo" id="rdoTipo" value="2" /> Foto horizontal
</p>
<input type="submit" value="Publicar" />
</form>
</body>
</html>