Now
is
the
time
<script type="text/javascript" src="./jquery-1.5.1.js"></script>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var array = jQuery.makeArray(document.getElementsByTagName("p"));
array.reverse();
$(array).appendTo(document.body);
});
</script>
</head>
<body>
<h1>jQuery: Creating an array</h1>
<p>Now</p>
<p>is</p>
<p>the</p>
<p>time</p>