title: Cannot get raw value from (including dot(.)) from HTML input type number
body: <p>When I click on the input <code>&lt;input type="number" id="n" /&gt;</code> ; type some key on <code>keypress</code> function of the input. Then typing <code>.</code> though it display on the input but I cannot get see <code>.</code> in <code>$('#n').val()</code>.</p>
  
  <p>For example after typing: <code>123.</code> Then <code>$('#n').val()</code> only return <code>123</code>.</p>
  
  <p>Is there any attribute of <code>&lt;input type="number" /&gt;</code> that I can get its <code>raw value</code> which is <code>123.</code> rather than <code>123</code>?</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>$("#n").on("keypress", function(event) {
    console.log($("#n").val());
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://code.jquery.com/jquery-2.1.4.js"&gt;&lt;/script&gt;
  &lt;input type="number" pattern="[0-9]{1,2}([\.][0-9]{1,2})?" id="n" step="0.01" /&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://jsbin.com/pazaqarahu/edit?html,js,console,output" rel="noreferrer">JSbin demo</a></p>
  
  <p>UPDATE:</p>
  
  <ul>
  <li><code>input</code> MUST have type number to allow it to showing number input only on softkeyboard on mobile web.</li>
  <li><p>It should check for pattern 99.99 and work as below:</p>
  
  <ol>
  <li>When type 9 OK // input: 9</li>
  <li>type 9 OK // input: 99</li>
  <li>type 9 NO, it not match pattern // input: 99</li>
  <li>Then type 1 NO, it not match pattern // input: 99</li>
  <li>..Free type typing anything rather than dot(.) here...</li>
  <li>type dot(.) OK // input: 99.</li>
  <li>type 9 OK // input: 99.9</li>
  <li>type 9 OK // input: 99.99</li>
  <li>type 9 NO // input: 99.99</li>
  </ol></li>
  </ul>
  
  <p>Without detect the existance dot(.) how can I detect the case of typing multiple <code>.</code> consecutively ?</p>