Possible Duplicate:
How to select a range of elements in jQuery.
How do I select paragraph by there’s order?
e.g first 4 I can select by
('#main p:lt(4)');
but how can I select paragraph from 5 to 8, from 8 to 12 etc.. ?
HTML
<div class="main">
<p>text1</p>
<p>text2</p>
<p>text3</p>
<p>text4</p>
<p>text5</p>
<p>text6</p>
<p>text7</p>
<p>text8</p>
<p>text9</p>
<p>text10</p>
<p>text11</p>
<p>text12</p>
</div>
Any help much appreciated.
Pete
5 to 8 is greter then 4 and lower then 9: