Unable to validate input data in array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #16
    Use match instead of test.

    test is for regExp object while match is for string object. And you have a string object. (link)

    Comment

    • hsriat
      Recognized Expert Top Contributor
      • Jan 2008
      • 1653

      #17
      Got late while searching for the link :D

      Comment

      • vikas251074
        New Member
        • Dec 2007
        • 198

        #18
        Originally posted by hsriat
        Use match instead of test.

        test is for regExp object while match is for string object. And you have a string object. (link)
        Yes Sir,

        It is now working well.

        Thanks and regards,
        Vikas

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #19
          Originally posted by vikas251074
          Yes Sir,

          It is now working well.
          If you'd tested on Firefox or a non-IE browser, you would've seen an error message, "mat.value. test is not a function", which would've given you a clue. Anyway, glad it's now working for you.

          Comment

          Working...