title: Convert String with Dot or Comma as decimal separator to number in JavaScript
body: <p>An input element contains numbers a where comma or dot is used as decimal separator and space may be used to group thousands like this:</p>
  
  <blockquote>
    <p>'1,2'<br>
    '110 000,23'<br>
    '100 1.23'</p>
  </blockquote>
  
  <p>How would one convert them to a float number in the browser using JavaScript?</p>
  
  <p>jQuery and jQuery UI are used. <code>Number(string)</code> returns <em>NaN</em> and <code>parseFloat()</code> stops on first space or comma.</p>