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?