I have links dynamically displaying on a page, their IDs are also dynamically created.
Can I do something like this:
var whatever = "'#"+originalVariable+"'";
var whatever = "#"+originalVariable;
You want whatever to be a string equal to "#foo" not "'#foo'"
The outside quotes don't actually exist ... It's just a way to tell the parser you are describing a string.