Hallo,
Weet iemand hoe ik onderstaande functies kan samenvoegen?
Functie 1:
Functie2:
Weet iemand hoe ik onderstaande functies kan samenvoegen?
Functie 1:
Code:
function checkForm( )
{
valid = true;
if ( document.invoer.adviseur.selectedIndex == 0 )
{
document.getElementById("adviseurError").style.display = "block";
valid = false;
}
return valid;
}
Functie2:
Code:
function checkForm2( )
{
valid = true;
if ( document.invoer.terecht.checked == false )
{
document.getElementById("terechtError").style.display = "block";
valid = false;
}
return valid;
}