Obsidian Age
New member
Hi there,
I currently have a PHP page that is starting to stack up a lot of information, so I have divided it into sections all under headers.
What I want to happen is that when a header is clicked, the relevant code is shown. When another header is clicked, I would also like to do some sort of check to see if a header is already expanded. If one already is, it will close that expansion.
The current format is:
<h1>Player 1 Information</h1>
[DETAILED TEXT]
<h1>Player 2 Information</h1>
[DETAILED TEXT]
etc.
If someone can come up with a creative, functional way to do that it would be greatly appreciated!
Cheers,
Obsidian Age.
I currently have a PHP page that is starting to stack up a lot of information, so I have divided it into sections all under headers.
What I want to happen is that when a header is clicked, the relevant code is shown. When another header is clicked, I would also like to do some sort of check to see if a header is already expanded. If one already is, it will close that expansion.
The current format is:
<h1>Player 1 Information</h1>
[DETAILED TEXT]
<h1>Player 2 Information</h1>
[DETAILED TEXT]
etc.
If someone can come up with a creative, functional way to do that it would be greatly appreciated!
Cheers,
Obsidian Age.