Javascript validation for ten digit phone number

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Blacky
    New Member
    • Jan 2009
    • 40

    #1

    Javascript validation for ten digit phone number

    Hi,

    I need a javascript validation which checks for
    Same digit: 0000000000, 1111111111, 2222222222, 3333333333, 4444444444, 5555555555, 6666666666, 7777777777, 8888888888, 9999999999

    Sequential digits: 0123456789, 1234567890, 0987654321

    it should throw an alert message for the above scenario on click of a button.

    Do reply asap

    Thanx in advance,
    Blacky
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    You should look into using Regular Expressions to help you validate the data.

    -Frinny

    Comment

    Working...