title: Make input to get only numbers with two decimal places
body: <p>Currently I am using following jQuery code to filter only digits:</p>
  
  <pre><code>$('#input_field').keyup(function(e) {
      if (/\D/g.test(this.value)) {
          this.value = this.value.replace(/\D/g, '');
      }
  });
  </code></pre>
  
  <p>But I want to get floating point numbers(upto to 2 decimal places) like this:</p>
  
  <pre><code>10.2
  1.23
  1000.10
  </code></pre>