title: jQuery wrap table rows
body: <p>I'm trying to wrap a set of consecutive table rows using jQuery, but when I try to target them, it's not finding the rows I expected it to. </p>
  
  <pre><code>$("tr.row1").next("tr:lt(4)").wrapAll("&lt;tr class='wrapped'&gt;&lt;td&gt;&lt;table&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;");​
  </code></pre>
  
  <p>I'm not sure how to properly explain this, so please look at this example: <a href="http://jsfiddle.net/uqp6H/" rel="nofollow">http://jsfiddle.net/uqp6H/</a></p>
  
  <p>Instead of wrapping row2 row3 row4 and row5, it is wrapping the next four row2's.</p>