... and make it work: leaving the radius in null, you should skip the alert. But it does not and validates.
else if(false){
function check(){
var r= document.getElementsByName("e");
var e= -1;
for(var i=0; i < r.length; i++){
if(r[i].checked>=0){
e = i;
}
}
if (e>=0){
return true;
}
}
alert("Error: selecciona alguna opción");
}
I do not know what I have to put exactly in the condition of the else if it works.
Thanks in advance.