Hy,
Im new to JavaScript and have some question on it.
I have one page that includes java script it is HTML. my script have to do next:
To ask number of clients
to calculate the price and to dysplay result when i press calculate button the code i have write is here too so please tell me whats wrog
:
// JavaScript Document
function Validate(){
if (document.form1.pices.value < 5)
document.form1.pices.value = 5;
}
function CalculatePrice(){
if (document.form1.pices.value = 5)
calculation = 100 + (document.form1.pices.value * 12);
document.form1.result.value == calculation;
if (document.form1.pices.value >= 6 && document.form1.pices.value <= 10)
calculation = 100 + (document.form1.pices.value
document.form1.result.value == calculation;
}
And next thing is that i have to do the check button for 2 ways of pay. if first is selected the price calculated above must be pased to a link of order page when i press continue button:
Thanx in advance