Jump to content

tabbed menu


redbullmarky

Recommended Posts

ok before i start, just need to say that i'll be using tables for this, not divs...


Hi all

right then - in a situation where i have an unknown quantity of button tabs and a <TABLE> for each one, how do i cycle through a group of tables and hide them all bar one?

- how do i setup the tables? (ie, name and ID)
- what's the code to cycle through all the tables and hide them? ie, a nice, clean 'for' loop?

in a nutshell, i know how to show/hide individual tables by referencing it by its ID and changing its style - display:none, etc, but how can i have an 'array' of tables where i can use one simple function to hide them all?

hope someone can help

Cheers
Mark
Link to comment
https://forums.phpfreaks.com/topic/3634-tabbed-menu/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.