SHARE
TWEET

Untitled

a guest Jun 24th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (var i = k; i >= 2; i--) {
  2.             console.log(i + " This is first i")
  3.             document.getElementById("calculatedPrice" + i).addEventListener("mouseover", function () {
  4.                 calcPrice(i);
  5.                 console.log(i + " 2nd i in function")
  6.  
  7.             });
  8.         };
  9.      
  10. function calcPrice(nr) {
  11.  
  12.     var count = document.getElementById("Antal" + nr).value;
  13.     var value = document.getElementById("groupSelect" + nr).value;
  14.  
  15.     document.getElementById('calculatedPrice' + nr).value = count * value;
  16.  
  17.  
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top