Let’s say I have a button that varies it’s label between Lollipops and Marshmallows. When pressed, it will show a list of one of those. Like this: <button id = "showCandies">Lollipops</button> <!– After toggle –&…