dropdown information toggle box (clickable) |
dropdown information toggle box (clickable) |
SmartG |
Jun 30 2016, 02:57 PM
Post
#1
|
Group: Members Posts: 1 Joined: 30-June 16 Member No.: 24,383 |
I have this dropdown (clickable) information box working in dreamweaver in the 'live' view, but it does not work when published to web. It will open, but will not 'hide' the info.
Here is the link to the page: www.coi.ucf.edu/financial.html |
Christian J |
Jun 30 2016, 04:11 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
Do you mean this button:
CODE <button onClick="myFunction()" class="dropbtn">Federal Reporting Exclusions</button> ? The javascript that it calls (which is duplicated both in the HEAD section and just below the DIV) toggles a "show" CLASS value in this DIV: CODE <div id="myDropdown" class="dropdown-content"> but I can't find any such CLASS in the two stylesheets, and nothing that hides the DIV either. It's not a very good script IMO, since it appears to leave the DIV permanently closed if javascript is disabled. I'd rewrite it completely. |
Lo-Fi Version | Time is now: 24th April 2024 - 06:34 PM |