Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Number formatting problem

 
Shashidahanu Iyyanar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have a textfield which should accept the input in the following formats:1234.45 or 123.45 or 1.45.There should be only 2 digits after the decimal point and 4 and less than 4 digits before the decimal point.How is this possible in Javascript?A example would be much better.Thanks in advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic