Here is my code i have tried this but i didn't get the proper output. I want to give input like 10.00,100.00,1,000.00,10,000.00
How to validate this

```
<input type="text" name="depo_amt" id="depo_amt"  maxlength="70" placeholder="10.00"onclick="formatNumber()"/>`

function formatNumber()
        {
         var regex  = ^[0-9]\d{0,9}(\.\d{1,2})?%?$;

                if (depo_amount.value=='regex')
                          {
                              alert("Number is valid");
                               return false;
                         }
else
{
alert("Number is not valid");
}

```

}