I have a button called “stomp,” and when it is clicked, I want the text in a span element above the button to display a different phrase. There are 12 phrases I want it to cycle through.
I have managed to fudge some JQuery so far that toggles just 2 of the phrases. After searching through forums and StackOFlow and etc., I can’t seem to find a simple fix for working it into 3-12 more phrases. I think I’m working in the wrong equation type (I feel like I shouldn’t be using toggle). But I don’t know where to go next. Any help would be awesome.
(I am new to CodePen as well but have attempted to use and link it here):