hi,
I got a problem with a standard if... else if sentence. Each one works
alone, (ie. putting a /*..*/ around one of the conditions)but by
combining them, only the first one triggers. The code :
function sjekk()
{
if (window.documen t.info.organisa sjon.value =='')
{
alert('hey!');
return(false);
}
else {
if (window.documen t.info.check_fe ste.checked == false)
{
var answer = confirm('Contin ue?');
if (answer) {
return (true);
}
else {
return(false);
}
}
}
}
obscurr
I got a problem with a standard if... else if sentence. Each one works
alone, (ie. putting a /*..*/ around one of the conditions)but by
combining them, only the first one triggers. The code :
function sjekk()
{
if (window.documen t.info.organisa sjon.value =='')
{
alert('hey!');
return(false);
}
else {
if (window.documen t.info.check_fe ste.checked == false)
{
var answer = confirm('Contin ue?');
if (answer) {
return (true);
}
else {
return(false);
}
}
}
}
obscurr
Comment