title: How do I select every pair of 2 sequential elements in jQuery?
body: <p>Can anyone please help me to work out how to achieve the following? I have a set of divs of unknown size. Each div has a class of .feature. I need to run a jQuery script to find all divs with .feature and then find all children as a series of pairs. Each pair will then be submitted to a further jQuery function. </p>
  
  <p>For example:</p>
  
  <pre><code>1. &lt;div.feature/&gt;
  2. &lt;div.feature/&gt;
  3. &lt;div.feature/&gt;
  4. &lt;div.feature/&gt;
  5. &lt;div.feature/&gt;
  </code></pre>
  
  <p>The result should be that 1+2 and 3+4 get paired together such that I can then call another jQuery function on each of these individual sets.</p>
  
  <p>I know that I can simply wrap each pair in an outer div and then find each wrapper divs children but I'd like to avoid changing the markup if possible.</p>