im trying to make a function to calculate tax from the function opprod
function chDelivery(delivery){
var deliv_value=delivery.value;
document.myform.deliveryAmt.value= deliv_value;
}
function opprod(myproducts){
var prod =myproducts.value;
document.myform.productp.value= prod;
}
function calcTax(myproducts)
{ var product
product = parseFloat(myproducts);
var tax;
taxout = productp * 0.13;
//return tax;
document.write(taxout);
document.write(product);
}
I don't know why someone said useless, but it does have that pesky kernel driver bundled, and it's in perennial turmoil. When it goes bad, it goes very bad, and it's impossible to predict when it will due to system differences. I know that they're in the middle of development for a major new version that will include a completely new driver, one that they expect will largely solve the problem, but that's a ways out and it's unproven at this point.
Question
ironsight2000
im trying to make a function to calculate tax from the function opprod
function chDelivery(delivery){ var deliv_value=delivery.value; document.myform.deliveryAmt.value= deliv_value; } function opprod(myproducts){ var prod =myproducts.value; document.myform.productp.value= prod; } function calcTax(myproducts) { var product product = parseFloat(myproducts); var tax; taxout = productp * 0.13; //return tax; document.write(taxout); document.write(product); }Link to comment
https://www.neowin.net/forum/topic/849308-javascript-calculate-tax/Share on other sites
3 answers to this question
Recommended Posts