![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
17/01/2011, 14:25
|
![Avatar de marlanga](http://static.forosdelweb.com/customavatars/avatar385383_3.gif) | | | Fecha de Ingreso: enero-2011 Ubicación: Murcia
Mensajes: 1.024
Antigüedad: 14 años Puntos: 206 | |
Respuesta: validacion de formulario error
Código:
<SCRIPT LANGUAGE="JavaScript">
function valida_envia() {
var s = false;
with (document.forms['form'])
{
for ( var i = 0; i < plan.length; i++ )
{
if ( plan[i].checked )
{
s= true;
break;
}
}
if (!s)
{
window.alert("Debes seleccionar un plan" );
return false;
}
submit();
}
}
</SCRIPT>
|