title: Problem to sum two values in Jquery
body: <p>I can't get the right sum of two values.I want to sum the cena1 and kolicina. (cena1+kolicina) and (cena1*kolicina)
  My jquery code</p>
  
  <pre><code>&lt;script type="text/javascript"&gt; 
  function izracunaj() {
  
      var sum = 0;
      $("#kolicina").each(function() {
  
      var cena = $("#artikel").val().split("-"); 
      var cena1 = cena[1]; // HERE I GET VALUE 0.17
      var kolicina = $("#kolicina").val(); // VALUE 10
  
          });
  }
  
  &lt;/script&gt;
  </code></pre>