title: How can I get the value of an input element instead of `null`?
body: <p>When the user inputs any number, the number needs to be joined with the assigned text (in this case a URL). However it results in this: <code>http://someurl.com/?value=null</code>. Instead of <code>null</code> I expect the number the user inputted.</p>
  <pre class="lang-html prettyprint-override"><code>&lt;head&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
      var juarel = &quot;http://someurl.com/?value=&quot;;
      var velju = document.getElementById('somenumber');
      var rezon = juarel.concat(velju);
  
      function print() {
        alert(rezon);
      }
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;form&gt;
      &lt;input type=&quot;number&quot; id=&quot;somenumber&quot; value=&quot;&quot;&gt;
      &lt;button type=&quot;button&quot; id=&quot;submit&quot; name=&quot;button&quot; onclick=&quot;print()&quot;&gt;SUBMIT&lt;/button&gt;
    &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>