Textbox Input Validation

Textbox Input Validation

I would like to use jQuery to validate numbers entered into my textboxes on my webpage. I would like to validate it to make sure that it is:
  1. A number
  2. In the range 0.100 to 10.000
  3. To 3 decimal places
I have the following code - but how can I expand it to suit my needs:
  1. $('.numbersOnly').keyup(function () {
  2.       if (this.value != this.value.replace(/[^0-9\.]/g, '')) {
  3.       this.value = this.value.replace(/[^0-9\.]/g, '');
  4. }
  5. });

Any help would be greatly appreciated!