title: how to retrieve any inserted string in input type 'number' in html
body: <p>Is there any way of getting the inserted string(of any sort) from:</p>
  
  <pre><code>&lt;input type="number" id='zipCode' name='zipcode' /&gt;
  </code></pre>
  
  <p>I'm trying to get value in console as:</p>
  
  <pre><code>console.log(document.getElementbyId('zipCode').value);
  </code></pre>
  
  <p>is giving just a blank output when any <strong>invalid string(string containing any alphabet or other special characters)</strong> is inserted which is also the same when actually left the field blank. But I want to retrieve the actual inserted value so that I can differentiate and validate the blank field with error message <strong>"Zipcode Field Empty!"</strong> and on invalid character string with error message <strong>"Invalid Zipcode!"</strong>. <strong><em>Is there any way to retrieve any sort of inserted string from input type='number' field?</em></strong></p>