Hi!
Yes my question is that simple!
I have the following javascript function in my asp web page -
<!--FUNCTION TO CALCULATE THE TOTAL AMOUNT-->
<script language="javascript">
function calctotal()
{
lvShip = document.forms['ordersnewform'].elements['OrderShipping'].value;
lvMisc = document.forms['ordersnewform'].elements['OrderMisc'].value;
lvTotal = (lvShip + lvMisc);
document.forms['ordersnewform'].elements['OrderTotals'].value = lvTotal;
}
</script>
I am having trouble with the line -
lvTotal = (lvShip + lvMisc);
lvShip and lvMisc are numbers (currency).
I want to add them together, but it is combining them.
Ex - 3+3 = 33. I want it to be 3+3 = 6.
THANKS!
Yes my question is that simple!
I have the following javascript function in my asp web page -
<!--FUNCTION TO CALCULATE THE TOTAL AMOUNT-->
<script language="javascript">
function calctotal()
{
lvShip = document.forms['ordersnewform'].elements['OrderShipping'].value;
lvMisc = document.forms['ordersnewform'].elements['OrderMisc'].value;
lvTotal = (lvShip + lvMisc);
document.forms['ordersnewform'].elements['OrderTotals'].value = lvTotal;
}
</script>
I am having trouble with the line -
lvTotal = (lvShip + lvMisc);
lvShip and lvMisc are numbers (currency).
I want to add them together, but it is combining them.
Ex - 3+3 = 33. I want it to be 3+3 = 6.
THANKS!