View Single Post
Old 09-25-2012, 02:57 AM   PM User | #5
Liz.2012
New to the CF scene

 
Join Date: Sep 2012
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Liz.2012 is an unknown quantity at this point
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);
Liz.2012 is offline   Reply With Quote