Hello,
I'm Greg, a beginner in javascript, and I have a homework at university, to create a sort of a "pizza online-order website". I must give the option (through a FORM) for the buyer to specify how much, how large and what kind of pizza he wants to eat, and wether he wants it to be delivered or not. That part is done, sort of, I searched for a lot of things for my javascript on the internet, and found things, but now I'm stuck, so I need help. I need to count the cost, for example there are the pizzas, if you say you want two, and you enter 2 to one of the textboxes, the Count button should calculate the order. But I just don't know how to do it, I tried, but somehow, it doesn't seem to allow my script there, and if that part is not working, the other parts of the script are also not working! Also, I don't know that, if it's counted, how can I print the sum of the costs to the other side of the table, for example into a label.
The site is at:
http://irx.inf.elte.hu/~begoaai/pizzaboy/index2.html
The code is pretty messy, e.g. there are three buttons which do the same, but anyway...