title: Javascript code not showing correct output
body: <p>i am working on javascript to create weight conversion . but unfortunately i am not getting correct outut rather then i am getting <strong>NaN</strong> in my required text fields</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;script&gt;
  function Convert(valNum) {
    document.getElementById("outputPounds").innerHTML=valNum*2.2046;
    document.getElementById("outputGrams").innerHTML=valNum*1000;
    document.getElementById("outputMilligrams").innerHTML=valNum*1000000;
    document.getElementById("outputUsTons").innerHTML=valNum*0.0011023;
    document.getElementById("outputOunces").innerHTML=valNum*35.274;
  }
  &lt;/script&gt;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form name="Weightconverter"&gt;
    &lt;fieldset class="container"&gt;
    &lt;label for="enterWeight" &gt;Enter Weight in Kilogram: &lt;/label&gt;
    &lt;input type="text" id="kgid" name="enterWeight"/&gt;
    &lt;input  type="button" id="enterWeight" style="background-color:#069; width:100px; padding:5px; text-align:center" value="Convert"  onClick="Convert(this.value)"/&gt;
    &lt;/fieldset&gt;
          &lt;/p&gt;
          &lt;div class="container"&gt;
    &lt;p&gt;Pounds: &lt;span id="outputPounds"&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;p&gt;Grams: &lt;span id="outputGrams"&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;p&gt;Milligrams: &lt;span id="outputMilligrams"&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;p&gt;UsTons: &lt;span id="outputUsTons"&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;p&gt;Ounces: &lt;span id="outputOunces"&gt;&lt;/span&gt;&lt;/p&gt;
          &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>