Hello everyone, I am new to HTML and just wanted to help my girl friend build her website. She wants to make it such that the user needs to answer a set of questions that has a condition and depending on each reply the result provided would be a alert box stating the data. for example she wants to check the age and marital status. if the age is less than 25 and marital status is single : one option should be displayed similarly if the age is less than 25 but the marital status is divorced another alert box should poop up. Can anyone please please help me with the base code in which i can check for the condition and call a function that does this. I can amend the code according to her need but i am struggling to determine the code. if i can help i want something like this:
function start(age(), abc())
{
abc();
age();
}
if(age<25 && abc=yes)
{
alert("you can apply");
}
else if( age>25 && abc =yes)
{
alert("you can apply");
}
else if(age<25 && abc=no)
{
alert("no");
}
else
{
alert("no");
}
function start(age(), abc())
{
abc();
age();
}
if(age<25 && abc=yes)
{
alert("you can apply");
}
else if( age>25 && abc =yes)
{
alert("you can apply");
}
else if(age<25 && abc=no)
{
alert("no");
}
else
{
alert("no");
}