Knowledge Walls
John Peter
Pune, Maharashtra, India
How to select first few elements in jquery selector with Example
slice method is used to select from startIndex to endIndex of selected list of elements by selector in jquery. slice method of jquery is used to select first few elements in jquery elements.

Example: HTML
<div class="my_div">A</div>
<div class="my_div">B</div>
<div class="my_div">C</div>
<div class="my_div">D</div>
<div class="my_div">E</div>
Demo & Output 
Best Lessons of "One day One Thing to Know"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details