Question subject: Need help with JavaScript function calculate the total pric!
Posted: Thu Jun 04, 2009 9:23 pm
Joined: Thu Jun 04, 2009 8:59 pm Posts: 1 Has thanked: 0 time Have thanks: 0 time
Hi, I have this exercise to do, and it's almost finished but I am stuck on the calculation. I need to calculate the total price. Not sure what I need to do to make the totalprice function work. This is just a learning material. It only works in IE, and it's not a problem. I can email the code to someone if needed.
This is the function that should calculate within a form but it doesn't.
function calculate(value) { var totalprice = value; var notickets = value; var ticketprice = value; var add = 10