title: form input select returned as number, not string, with javascript
body: <p>I have one <strong>html form</strong> which contain about 5 <strong>select inputs</strong>. Each input has as a value a number. When selection is made, i want to return the value as <strong>number</strong>, and not as a string. Example below:</p>
  
  <p></p></p>
  
  <pre><code>&lt;p&gt;Cop &lt;select name="c_palat" id="c_palat"&gt;
    &lt;option value=0&gt;0&lt;/option&gt;
    &lt;option value=30&gt;1&lt;/option&gt;
    &lt;option value=60&gt;2&lt;/option&gt;
  &lt;/select&gt;&lt;/p&gt;
   &lt;p&gt;Adult &lt;select name="a_palat" id="a_palat"&gt;
    &lt;option value=45&gt;1&lt;/option&gt;
    &lt;option value=90&gt;2&lt;/option&gt;
    &lt;option value=135&gt;3&lt;/option&gt;
  &lt;/select&gt;&lt;/p&gt;&lt;/div&gt;
  
  &lt;script&gt;
      var c_palat = document.getElementById("c_palat");
      var c_pal = c_palat.options[c_palat.selectedIndex].value;
      var a_palat = document.getElementById("a_palat");
      var a_pal = a_palat.options[a_palat.selectedIndex].value;
  
      var x =c_pal + a_pal
  
      document.getElementById("result").innerHTML = x;
  &lt;/script&gt;
  </code></pre>
  
  <p>So, for a selection of option 1 from first input, (value 0), and option 1 from second input (value 45), the result is <strong>045</strong>(string), not <strong>45</strong>(number).
  Thank you for any help provided. Have a nice day.</p>