Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

total cost example in javascript with function

<script>
var User_Name = document.getElementById("User_Name").value;
var Quantity = document.getElementById("Quantity").value;
var Price = document.getElementById("Price").value;
var Tax = .0825;

function calculateTax(Price) {
document.getElementById("Total").value = Price * Tax;
}
</script>
Source by www.sitepoint.com #
 
PREVIOUS NEXT
Tagged: #total #cost #javascript #function
ADD COMMENT
Topic
Name
3+1 =