How to use jQuery.slice() method with no arguments?
Answers
Answered by
0
The slice() method used in this line is same as slice(-6,-4); . $( "div" ).slice( -3,-1 ).add Class("highlight"); This will select the div elements between the start index -3 and end index -1 and changes the color to yellow. The slice() method used in this line is same as slice(3,5) .
Similar questions