NoOneInParticular
Programmer
I'm trying to add a value from one textbox, to another value, and display the total in a second textbox. The value in the first checkbox depends on a what checkboxes the user checks.
Each checkbox has a different value, and the first textbox displays the total dollar value of the diff. checkboxes that are checked. The second textbox displays the value of the first textbox plus 10.
THE PROBLEM: I can't get the values to add together. I can't extract the value of the first textbox to add 10 to it, and display it in the second textbox.
Any help is welcome!!!
Here is my code:
function Calculate(){
form1.trinkets.value = ""
var totalvalue = "";
var totaltrinkets = "";
if (form1.check1.status == 1){
total1 = total1 + 75;
form1.totalvalue1.value = total1;
} else {}
if (form1.check2.status == 1){
total1 = total1 + 200;
form1.totalvalue1.value = total1;
} else {}
totalvalue = form1.totalvalue1.value + 10;
form1.total2.value = totalvalue;
}
Each checkbox has a different value, and the first textbox displays the total dollar value of the diff. checkboxes that are checked. The second textbox displays the value of the first textbox plus 10.
THE PROBLEM: I can't get the values to add together. I can't extract the value of the first textbox to add 10 to it, and display it in the second textbox.
Any help is welcome!!!
Here is my code:
function Calculate(){
form1.trinkets.value = ""
var totalvalue = "";
var totaltrinkets = "";
if (form1.check1.status == 1){
total1 = total1 + 75;
form1.totalvalue1.value = total1;
} else {}
if (form1.check2.status == 1){
total1 = total1 + 200;
form1.totalvalue1.value = total1;
} else {}
totalvalue = form1.totalvalue1.value + 10;
form1.total2.value = totalvalue;
}