treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Show div based on menu var?

  • Hello,

    Does anyone know of any examples of showing specific divs based on a selected menu var from JS?

    Thanks in advance!

  • @TylerNYC Do you mean fading in divs based on a selected menu item or something similar?

  • I have a div inside on a slider. I will be splitting the divs for certain data variables. A simple solution would to have them set to display:none and display whichever menu item is selected but doing menu vars would be cleaner.