javascript single quote

Discussion in 'Javascript' started by Ponic, Apr 5, 2004.

  1. Ponic

    Ponic Guest

    Hello,

    I have a for loop and inside that I have if and else condition.
    For both conditions I need to append a single quote before and after a
    value. I am using '\'' to append single quote.

    However in my if condition at the end of the value single quote is
    giving problem, only at the end of the value, else where it's working.
    I tried space instead of single quote, it's working. What could be the
    problem? Any ideawhy I am getting error.

    Any help is highly appreciable.

    Thanks

    Ponic
     
    Ponic, Apr 5, 2004
    #1
    1. Advertising

  2. Ponic wrote:

    > I have a for loop and inside that I have if and else condition.
    > For both conditions I need to append a single quote before and after a
    > value. I am using '\'' to append single quote.
    >
    > However in my if condition at the end of the value single quote is
    > giving problem, only at the end of the value, else where it's working.
    > I tried space instead of single quote, it's working. What could be the
    > problem? Any ideawhy I am getting error.


    Post the relevant code snippet, and tell us which error message you get
    on which line with which browser
    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Apr 5, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    13,376
  2. Eric Layman
    Replies:
    3
    Views:
    652
    Rad [Visual C# MVP]
    Apr 14, 2007
  3. Evan
    Replies:
    1
    Views:
    412
    Marc 'BlackJack' Rintsch
    Nov 4, 2008
  4. Evan
    Replies:
    3
    Views:
    546
    Marc 'BlackJack' Rintsch
    Nov 4, 2008
  5. vikrant
    Replies:
    8
    Views:
    385
    vikrant
    May 17, 2007
Loading...

Share This Page