Write the code to support the actions of the mark purchasing process. When the Go For it button is pushed, the cost to the student is generated. To purchase 1 to 4 marks costs $5 per mark; 5 to 9 marks costs $10 per mark; and over 9 marks costs $15 per mark. The number of courses is counted and displayed in Number of courses. Display the accumulated cost for all courses in total cost. The code must work correctly inside the Number of Courses and Total Cost boxes to receive any marks.
I cant get total cost to work... Here is all my code so far, any ideas?
http://www.w3schools.com/js/tryit.asp?filename=tryjs_variables