title: jquery - how to find from nextAll
body: <p>I couldn't find an answer that fits exactly in this. I have the following html.</p>
  
  <pre><code>&lt;div class="parent"&gt;
     &lt;div class="item" id="item1"&gt;&lt;/div&gt;
     &lt;div class="item" id="item2"&gt;&lt;/div&gt;
     &lt;div class="pl"&gt;&lt;/div&gt;
     &lt;div class="item" id="item3"&gt;&lt;/div&gt;
     &lt;div class="item" id="item4"&gt;&lt;/div&gt;
     &lt;div class="item" id="item5"&gt;&lt;/div&gt;
     &lt;div class="item" id="item6"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is the what I am doing in middle of my code.</p>
  
  <pre><code>var result = $("#item1").nextAll().slice(0,3);
  console.log(result.find(".pl").length);
  </code></pre>
  
  <p>The final output seems to return 0. But I expect it to return 1.
  How do I do that?</p>