<input id="test" type="text" value="1 000 000.11"> <script> var a = test.value; var b = Number(a.split(" ").join("")); alert(b); </script>