I have some kind of problem with jQuery selectors.
Let\'s say i want to select $(\'#elementID\') but the elementID is a variable.
$(\'#elementID\')
elementID
If elementID is a variable ala var elementID = '#someId', I would suggest simply (although I didn't try it ):
var elementID = '#someId'
$(elementID)
jQuery/JavaScript should dereference this variable as a string value and wrap the ID correctly for further operations...