title: regex to allow only numbers and single dot in jquery
body: <p>Regex to allow only numbers and single dot when entering number to textbox in jquery.</p>
  
  <p>Please suggest any regex to allow only numbers and single dot in textbox.</p>
  
  <p>I have tried the following code.</p>
  
  <pre><code>$("#amountId").val().replace( /[^0-9]+/g, '')
  </code></pre>