title: JQuery Variable In Selector without string concatenation
body: <p>I am writing a lot of code where I am using the same selectors but snippets of them for example</p>
  
  <pre><code>$('#menu &gt; div.container a')
  </code></pre>
  
  <p>and </p>
  
  <pre><code>$('#menu span.highlight')
  </code></pre>
  
  <p>is there any method to have '#menu' in a variable and use that instead?  The issue I have with string concatenation is that it requires one to be extremey disciplined about its use as even a single missing space will mess things up.  What I would rather do is something like below:</p>
  
  <pre><code>var menuSelector = '#menu';
  $('{menuSelector} &gt; div.container a')
  $('{menuSelector} span.highlight')
  </code></pre>
  
  <p>I have checked the documenation and such a feature does not exist.  The problem with implementing such a feature is that jQuery needs to eval within the caller's context.  Is this possible within javascript?  Secondly how might I go about implementing this feature myself?</p>