aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes not allow to enter greater than 10000.00 number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "not allow to enter greater than 10000.00 number" Watch "not allow to enter greater than 10000.00 number" New topic
Author

not allow to enter greater than 10000.00 number

Sekhar Chand
Ranch Hand

Joined: Apr 05, 2006
Posts: 73
hai guys,
i am new to javascript so thats why i strucks at every point.
here my task is not allow user to enter more than 10000.00
If he enter not a digits he must be alerted.
we can accept any numbers after decimal, but when we submitting form or going to next field that value must be rounded to 2 didgits after the decimal.
if he enters 10000.001 , he must e alerted.
if he enters 12.0456, it must be rounded to 12.05.
if he enters 12qwqw he must be alerted.
if he enters 10000 or 10000.00 its ok
if he enters 2. it must be 2.00
the number of digits after decimal must be two .

if he enters 0 it must be rounded to 0.00
if he enters nothing no problem.

how to do this
I have done this but i am getting alerts in the validations of the next field.

So please tell me how to complete this task

nani
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
So let us see your code since we do not get paid to do your work.

Eric
Sekhar Chand
Ranch Hand

Joined: Apr 05, 2006
Posts: 73
hai eric,
thanks for your interest to solve that task.
And one good news is that i have solved that one.

ok thank you very much for helping every body and giving reply to every one

ok bye
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: not allow to enter greater than 10000.00 number