total cost javascript code example
Example: 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>