title: Replace all the dots in a number
body: <p>I'm trying to replace all dots found in a value entered by the user in an HTML form.
  For instance I need the entry '8.30' to be converted to '8x30'.</p>
  
  <p>I have this simple code:</p>
  
  <pre><code>var value = $(this).val().trim(); // get the value from the form
  value += ''; // force value to string
  value.replace('.', 'x');
  </code></pre>
  
  <p>But it doesn't work. Using the console.log command in Firebug, I can see that the replace command simply does not occur. '8.30' remains the same.</p>
  
  <p>I also tried the following regexp with no better result:</p>
  
  <pre><code>value.replace(/\./g, 'x');
  </code></pre>
  
  <p>What am I doing wrong here?</p>