pages[i].style.display = "block";
The padding of the
ul, however, remains intact. How might I toggle with the
style.display of a list item without removing the bullet?
list-item instead, then (which is the default value for
In your case, it would be:
pages[i].style.display = 'list-item';