texerasmo
13-03-2003, 11:07
Se devo fare un controllo su un campo input type Radio com'è la sintassi,(è un valore boolean giusto?)
<!--
function Controlla(){
var bad="";
if(document.f.Subject.value == "") {
bad += " Subject";
document.f.Subject.focus();
}
if(document.f.Text.value == "") {
bad += " Testo";
document.f.Text.focus();
}
if(bad != ""){
alert("inserire i campi : " + bad)
return false;
}
else
{
return true;
}
}
//-->
</SCRIPT>
Grazie a tutti
<!--
function Controlla(){
var bad="";
if(document.f.Subject.value == "") {
bad += " Subject";
document.f.Subject.focus();
}
if(document.f.Text.value == "") {
bad += " Testo";
document.f.Text.focus();
}
if(bad != ""){
alert("inserire i campi : " + bad)
return false;
}
else
{
return true;
}
}
//-->
</SCRIPT>
Grazie a tutti