Quick Fix to get Mozilla value on input number
This is an example for fix the current bug on Mozilla when you type a "space" into number field
HTML
<h2>Type a number with spaces</h2>
<input type="number" id="thenumber">
<input type="hidden" id="texte">
<button> click me </button>
JavaScript
$(document).ready(function(){
$("button").on("click", function(){
$("#texte").val($("#thenumber").val());
alert($("#thenumber").val());
});
});