Given a jQuery object that represents a set of DOM elements, the .slice() method constructs a new jQuery object containing a subset of the elements specified by the start and, optionally, end argument. The supplied start index identifies the position of one of the elements in the set; if end is omitted, all elements after this one will be included in the result.
Example Program:- (Editor)
Editor is Loading...
Output:-
Advertisement
0 nhận xét:
Đăng nhận xét