title: Only allow positive or negative decimals in a field
body: <p>I currnetly have the following javascript whicih works perfectly for positive numbers and decimals, but it does not allow me to input a negative</p>
  
  <pre><code>   this.value = this.value.replace(/[^0-9\.]/g, '');
  </code></pre>
  
  <p>I tried the following combinations with no luck. please help.</p>
  
  <pre><code>(\+|-)?([0-9]+(\.[0-9]+))
  </code></pre>