I am a hobbyist/novice. This is very difficult to describe, I can't seem to wrap my head around what is actually happening and that is making the problem difficult to debug. I have my script divided into three objects and a class, each object holds Elements of an HTML page, Event Listeners, and Functions. I will ask about the merits and flaws of this organization in a separate question. This project is meant to provide an easy reference for the DM of a tabletop RPG called "Apocalypse World" which is pretty basic. On this webpage, I perform a few different actions but the one in question is the basic moves reference. I have a drop-down list that has the name of the moves, you pick one, and it displays a short summary of the move. This seems to work fine in my first iteration but I wanted to add a feature where selecting the move that is already being displayed will make that move toggle a hidden class that will remove the summary from view. Displaying the first summary ...
A site where you can share knowledge