![Confundido](http://static.forosdelweb.com/fdwtheme/images/smilies/confused.png)
![Confundido](http://static.forosdelweb.com/fdwtheme/images/smilies/confused.png)
![Confundido](http://static.forosdelweb.com/fdwtheme/images/smilies/confused.png)
![Confundido](http://static.forosdelweb.com/fdwtheme/images/smilies/confused.png)
![Confundido](http://static.forosdelweb.com/fdwtheme/images/smilies/confused.png)
Código PHP:
function comprobarRadio(radio)
{
for(i = 0;i < radio.length;i++)
{
if(radio[i].checked)
{
return false;
}
}
return true;
}
Código PHP:
if(!comprobarRadio(form.Valoracion1.value))
alert("Por favor, seleccione una opción.");