Slices paragraphs to include only the second element. : slice « jQuery « JavaScript DHTML






Slices paragraphs to include only the second element.

  

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

   
    
  








Related examples in the same category

1.Slice start and end
2.Slice start till ends
3.Slices paragraphs to include only the first and second element.
4.Slice paragraphs to include only the second and third element.
5.Slice li under a ul
6.slice to the end