title: How do i remove all characters in a string Javascript?
body: <p>I have a form that sends money value e.g</p>
  
  <pre><code>&lt;input type="text" name="amount" value="N50,000.00 NGN" /&gt;
  &lt;input type="button" value="submit"&gt;
  </code></pre>
  
  <p>I want to remove all characters in the amount field leaving only the numbers in this format;</p>
  
  <pre><code>&lt;input type="text" name="amount" value="50000" /&gt;
  &lt;input type="button" value="submit"&gt;
  </code></pre>
  
  <p>what is the best method to do this with javascript?</p>