title: Multiple selector chaining in jQuery?
body: <p>Normally when I use a class as a selector I try to use an "id" selector with it so it does not search through the entire page but only an area where the class would be.</p>
  
  <p>However I have a partial view with code in it. This partial view (common code) gets wrapped around a form tag.</p>
  
  <p>I have:</p>
  
  <pre><code>&lt;form id="Create"&gt;
  // load common code in from partial view
  &lt;/form&gt;
  
  &lt;form id="Edit"&gt;
  // load common code in from partial view
  &lt;/form&gt;
  </code></pre>
  
  <p>Now in this common code I need to attach a plugin to multiple fields so I would do</p>
  
  <pre><code>$('#Create .myClass').plugin({ options here});
  
  $('#Edit .myClass').plugin({options here});
  </code></pre>
  
  <p>So it's pretty much the same code. I am wondering if there is a way to make it look for either of the id's?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I am having problems with it when I have variables for my selectors</p>
  
  <pre><code>    my.selectors = 
      {
          A: '#Create',
          B: '#Edit',
          Plugin: ' .Plugin' 
      };
  
   $(selector.A+ selectors.Plugin, selector.B+ selectors.Plugin)
  </code></pre>
  
  <p>Does not seem to run.</p>