title: How to get value from input element as a number in decimal
body: <p>I wnat to get values from input elements as numbers and count them with jQuery. I'm trying, but result is not on decimal. How to fix that problem ?</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;input name="test1" value="1.77" type="hidden" /&gt;
  &lt;input name="test2" value="1.23" type="hidden" /&gt;
  </code></pre>
  
  <p>jQuery</p>
  
  <pre><code>var a = parseInt($( "input[name='test1']").val(), 10);
  var b = parseInt($( "input[name='test2']").val(), 10);
  alert( a + b ); // should be 3, but it is only 2
  </code></pre>
  
  <p>Here is an example -> 
  <a href="http://jsfiddle.net/ynternet/87tdj7z3/" rel="noreferrer"><strong>jsfiddle Example</strong></a></p>