|
Yes, I know I should know how to do it but I don't. Using your example is helping me build the rest of the project, this is just one small piece in it. I'm trying to get my head around the logic. I see I made a few silly errors with my code, I have altered it below and would really appreciate your help. Sorry for being a pain, I'm only learning.
var people = document.form1.numPeople.value;
var courseChoice = document.form1.course.value;
var totOnecourse = people*15;
var totTwocourse = people*20;
var = if (numPeople <=30 && courseChoice ==1);
{totOnecourse}
else if (numPeople <=30 &&courseChoice==2)
{totTwocourse}
document.form1.tlcost.value = tot.toFixed(2);
|