...

View Full Version : how to escape this ?



docock
08-19-2011, 07:56 PM
In my coding I have the following lines:



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


$('<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?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum