Jump to content
  • Advertisement
Sign in to follow this  
gamerking

[web] Show hide tabs, please help me.

This topic is 4377 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I am using >Show products <LI style="display:none;">Product 'a' <LI style="display:none;">Product 'b' etc. So far it looks like this when run: Show products. Now how do I open the closed tabs when I click show products? Is this the correct way (Don't think so as I can't get it working) or is there another way?

Share this post


Link to post
Share on other sites
Advertisement
Enclose them in a div:
Show products
<DIV id="products" style="display:none">
<LI>Product 'a'
<LI>Product 'b'
</DIV>

Then you can change the display functionality f the div using document.getElementById("products").style.display.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!