Jump to content
Sign in to follow this  
Followers 0

javascript calculate tax

4 posts in this topic

Posted

im trying to make a function to calculate tax from the function opprod


[code]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);
}[/code]

Share this post


Link to post
Share on other sites

Posted

I don't understand what exactly you're asking for...

Share this post


Link to post
Share on other sites

Posted

what he said ^ ;)

Share this post


Link to post
Share on other sites

Posted

sounds like hes trying to write something that will calulate the sales tax on an item.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.