Sign in to follow this  
gamerking

[web] Show hide tabs, please help me.

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this