Currently you can list the numbers in ascending and descending order.
[code]
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″ />
<title> HTML5 page </title>
</head>
<body>
<ol id=”incOrder”>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four</li>
<li>List item five</li>
</ol>
<ol id=”decOrder” reversed>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four</li>
<li>List item five</li>
</ol>
<script>
// Control of ‘reversed’ attribute in both <ol> elements.
// Dynamic possible using ID of the elements???
</script>
</body>
</html>
Is it possible to control the insertion of the ‘reversed’ attribute dynamically?
I don’t know what the JS would look like to insert the ‘reversed’
into the id=”incOrder” element.