Slices paragraphs to include only the first and second element. : slice « jQuery « JavaScript Tutorial






$("p").slice(0, 2).wrapInner("<b></b>");








30.98.slice
30.98.1.Slice start and end
30.98.2.Slice start till ends
30.98.3.Slices paragraphs to include only the first and second element.
30.98.4.Slices paragraphs to include only the second element.
30.98.5.Slice paragraphs to include only the second and third element.
30.98.6.Slice li under a ul
30.98.7.slice to the end