title: Cannot remove commas from input type number value
body: <p>I'm trying to remove the commas from an input value using JS / jQuery.</p>
  
  <p>The input type is number and I'm running the sanitisation process on key up.</p>
  
  <p>The below code works fine when the input type is text, but not when the input type is number. </p>
  
  <p>I'm using the input type number as a currency input, hence why I'm attempting to remove commas incase someone inputs $1,000 for example.</p>
  
  <p>And I'd like to use input type number as this will mainly be used on mobile devices.</p>
  
  <p>Does anyone know why that might be please?</p>
  
  <p>-</p>
  
  <p><a href="http://codepen.io/anon/pen/YXvxxK" rel="nofollow">http://codepen.io/anon/pen/YXvxxK</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('.form input').on('keyup', function() {
    field1 = $('#field1').val();
    var newField1 = parseFloat(field1.replace(/,/g, ''));
    console.log(newField1);
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;form class="form"&gt;
    &lt;input type="number" id="field1" /&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>