Web Analytics Made Easy -
StatCounter how to escape this ? - CodingForum

Announcement

Collapse
No announcement yet.

how to escape this ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to escape this ?

    In my coding I have the following lines:

    Code:
    for (index = 0; index < slidesNumber; index++)
    {
      $('<a href="#"></a>')
    }
    Now I want to give each href a unique name with the index variable.
    So it should look like

    Code:
    $('<a href="#index"></a>')
    Problem is that it just displays the word 'index', and I don't know how to escape it, so that it displays the value of index.

    Who can help me out?
Working...
X