Gist 384981
✓ Published0🌍 Public
Aabernier
Last edited Apr 30, 2010
Created on Apr 30, 2010
This example shows a simple DOM manipulation effect: an ordered list appears in reverse order. A jQuery script selects all `<li>` elements inside an `ol.reversed` list and moves each one to the beginning of its parent using the `prependTo()` method, effectively flipping the visible sequence. The code relies on jQuery’s `$(function(){...})` ready handler and the `each()` iterator, with no data source or visualization library involved—it demonstrates a lightweight, CSS-free way to reorder list items on page load.
AI-generated description