I need to iterate over jquery child elements in reverse:
$("#parent").children().each(function() {
# do stuff
})
but in reverse.
I have seen the use of reverse() with get()
$($("li").get().reverse()).each(function() { /* ... */ });
but don't seem able to make it work with children().