Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (var i = k; i >= 2; i--) {
- console.log(i + " This is first i")
- document.getElementById("calculatedPrice" + i).addEventListener("mouseover", function () {
- calcPrice(i);
- console.log(i + " 2nd i in function")
- });
- };
- function calcPrice(nr) {
- var count = document.getElementById("Antal" + nr).value;
- var value = document.getElementById("groupSelect" + nr).value;
- document.getElementById('calculatedPrice' + nr).value = count * value;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement