when I use the following line in the console (FF & chrome)
var stripID = "\'#strip_" + ID + "\'";
console.log(stripID);
I get what I wanted: '#strip_126327'
But when I put it in the JS file, and the function executing this, is triggered i get
uncaught exception: Syntax error, unrecognized expression: ''
withut even a file and line reference.
Also, the purpose of all this is to get a string to put in $() selector.
You don’t need the single quotes in there:
is sufficient.
'is not a valid character in a selector.