• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

not allow to enter greater than 10000.00 number

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic