SyntaxFix
Write A Post
Hire A Developer
Questions
The best answer would be
var selector = '#something'; $(selector).anything(function(){ console.log(selector); });