C
chumley
i'm trying to add 70 dollars to a price total if a user selects the
second radio button in a group named inks1, which has a radio button
value of 2, but in my orderTotal function, i cannot get the selection
to add 70 to the price total in the following:
section of javascript orderTotal function:
if(isNaN(qty.value) || (qty.value <= 0))
{
qty.value = "";
stHold.value = "";
}
// else the field is a valid number, so calculate the
// total order cost and put that value in the
// hidden subtotal field
/// radiobutton check
if (document.oform.inks1.value = 2){
stHold.value = (Math.round(qty.value * (price.value + 70) * 100))/
100;}
else
{
stHold.value = (Math.round(qty.value * price.value * 100))/100;
}
html:
<input type = "radio" name="inks1" id="inks1" value="2"
onclick="orderTotal()">
wondering if i have to create a separate function for the radio button
??
chumley
second radio button in a group named inks1, which has a radio button
value of 2, but in my orderTotal function, i cannot get the selection
to add 70 to the price total in the following:
section of javascript orderTotal function:
if(isNaN(qty.value) || (qty.value <= 0))
{
qty.value = "";
stHold.value = "";
}
// else the field is a valid number, so calculate the
// total order cost and put that value in the
// hidden subtotal field
/// radiobutton check
if (document.oform.inks1.value = 2){
stHold.value = (Math.round(qty.value * (price.value + 70) * 100))/
100;}
else
{
stHold.value = (Math.round(qty.value * price.value * 100))/100;
}
html:
<input type = "radio" name="inks1" id="inks1" value="2"
onclick="orderTotal()">
wondering if i have to create a separate function for the radio button
??
chumley