MARKAND911 -1 Junior Poster

I have a textbox named "txtMoney"
I want to validate this textbox using javascript. And its validation criteria are as follows

  • Negative number is not allowed
  • All numerics. No letters
  • Only two digits after decimal
  • Maximum 12 digits including decimal

How can i do this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.