Return to Snippet

Revision: 50452
at August 22, 2011 23:16 by lewiswalsh


Initial Code
$('ul li').slice(start, [end]).fadeOut('slow').remove();

Initial URL

                                

Initial Description
By omitting [end] it will remove all to the end. Set an [end] with a negative value to count back from the end of the elements. fadeOut is unnecessary.

Initial Title
Truncating or removing a block of elements from a collection of elements (such as a list)

Initial Tags
javascript, jquery

Initial Language
jQuery