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