title: Javascript - Find first occurence of either variable
body: <p>I spent an hour looking for it with no luck...
  I need to run a <code>nextUntil()</code> in jQuery. Basically I wish to say:
  whether it's <code>var1</code> or <code>var2</code> that jQuery finds first, <code>nextUntil(suchvar);</code></p>
  
  <p>I tried assigning this way but no success:</p>
  
  <pre><code>var either = var1 || var2;
  ...nextUntil(either);
  </code></pre>
  
  <p>ps:I omitted the rest of the code for sake of simplicity.</p>