Slices paragraphs to include only the first and second element. : slice « jQuery « JavaScript DHTML
- JavaScript DHTML
- jQuery
- slice
Slices paragraphs to include only the first and second element.
$("p").slice(0, 2).wrapInner("<b></b>");
Related examples in the same category