Jump to content

Hiding /showing multiple DIV tags on the same area.


villeit

Recommended Posts

Hi,

 

I have just recently started to play around with JQuery (Version 1.3.2) but I am stuck.

 

I have three images that I that links to three unique DIV tags with text.

When I load the page, I want the content of the three different sections of text to be displayed on the same area (Below the images) depending on what the user has clicked.

 

So I thought that it should be easily done using Z-Index to have each DIV tag in their specific index (So they overlap, but only one is visible at a time) and use the toggle() method in jquery to display the expected div tag and hide the others.  But it doesn't seem to work.

 

Is this a good way of approaching my problem?

Or is there any other (easier) way of to achieve this?

 

Grateful for any help!

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.