I have a textbox field where i need to allow 18 or less than 18 digits and not more than 2 decimals (it may be 1 or 2 but not more than two).
Totally 18 digits before decimal if it exceeds 18 digits i need to add a dot and allow only two digits after decimal.
i.e 123456789123456789.98
or 12345678.44
or 1234567891234.22
How can i do this