<div id="totals"> </div>
<script>
window.onkeyup = keyup;
var quantity;
var ep = 99
var vpe = 10
function keyup(e) {
input = e.target.value;
parseInt(quantity);
parseInt(base);
var price = quantity * ep;
var pieces = quantity * vpe;
console.log(price);
console.log(quantity);
console.log(ep);
console.log(pieces);
console.log("Total Price: $" + price + ",00");
console.log("Amount Items: " + pieces);
document.getElementById("totals").innerHTML += "Items Total: " + pieces + “
Price Total: $" + price + “
";
}
</script>
- +49 561 9963 9601
- hello@eboosting.net
- Resources
Fachbeitrag: Above the fold – Weil eh keiner scrollt