strig comparison in javascript

Discussion in 'JavaScript' started by bugcoder, Jun 18, 2010.

  1. #1
    must be simple question.:confused: i have two javascript string vairables "passwordVariable" and "usernameVarialbe" and i want that usernameVariable value should not be anywhere in passwordVariable.
     
    bugcoder, Jun 18, 2010 IP
  2. anands

    anands Well-Known Member

    Messages:
    436
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Hi bugcoder,

    You can use indexOf method.

     
    anands, Jun 18, 2010 IP