Sign in to follow this  

javascript calculate tax

Recommended Posts

ironsight2000    8

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);
}

Share this post


Link to post
Share on other sites
+M2Ys4U    97

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

Share this post


Link to post
Share on other sites
BGM    95

what he said ^ ;)

Share this post


Link to post
Share on other sites
Knightwolf20024    19

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  

  • Recently Browsing   0 members

    No registered users viewing this page.