Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

not allow to enter greater than 10000.00 number

 
Sekhar Chand
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So let us see your code since we do not get paid to do your work.

Eric
 
Sekhar Chand
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic