Re: Decimal Validation



Sunny wrote on 05 dec 2005 in microsoft.public.scripting.jscript:
> I want to be able to "Allow only 3 digits before the decimal".
>
> Any Ideas or a Sample code is greatly appreciated.

if (n>=1000)
alert("Allow only 3 digits before the decimal");

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

.



Relevant Pages


Loading