Regex to allow only numbers and single dot when entering number to textbox in jquery.

Please suggest any regex to allow only numbers and single dot in textbox.

I have tried the following code.

```
$("#amountId").val().replace( /[^0-9]+/g, '')

```