Edit This Code:
<!DOCTYPE html>
<html>
<body>

<h3>A demonstration of how to access an OL element</h3>

<ol id="myOl">
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>

<p>Click the button to set the list items to increment from the number "25" instead of "1".</p>

<button onclick="myFunction()">Try it</button>

<script>
function myFunction() {
    var x = document.getElementById("myOl");
    x.start = "25";
}
</script>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy