title: Disable input dot '.' javascript
body: <p>I'm trying to disable user for input dot <code>.</code>. Here is what I try so far</p>
  
  <pre><code>$('#num').on('input', function (event) { 
      this.value = this.value.replace(/^[0-9]+\.?[0-9]*$//./, '');
  });
  </code></pre>
  
  <p>with my script above, I still can input dot <code>.</code>. Is there anyway to prevent user to input dot <code>.</code> ?</p>
  
  <p>thanks in advance, and sorry for my bad english.</p>