I'm currently working on a small application where I need to display some text wrapped in 3 divs. The goal is to only show one div at a time and provide users with prev and next buttons to switch between them. However, when JavaScript is disabled, I want to default to displaying just one div without the navigation buttons.
document.getElementById("id1").style.display = "block";
document.getElementById("id2").style.display = "none";
Any suggestions would be greatly appreciated! Thank you.