I need Javascript validations of :
1. 10 Digits cell number does not start with 0
2. Valid E Mail Address and
3. 6 Digits Pincode

As one of the posters in itpragan's link says, it's better to use regular expressions for these types of test.

The "charAt" approach is bulky and not as capable.

Airshow

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.