[jQuery] controlling li-items with unique IDs and trigger corresponding DIVs
hi guys,
hope someone can give me a hint for this. if i had an unordered list
as shown below, where the li-items had unique IDs - is there any way
that we check which li-items has been clicked so depending on that, we
could show/animate a corresponding, unique DIV (each li-items would
have its own corresponding DIV)? these DIVs would be preloaded and
hidden via CSS somewhere on the page.
<ul>
<li id="link1">Lorem ipsum dolor</li>
<li id="link2">Lorem ipsum dolor</li>
<li id="link2">Lorem ipsum dolor</li>
<li id="link3">Lorem ipsum dolor</li>
<li id="link4">Lorem ipsum dolor</li>
</ul>
or do the li-items need to go into HREFs to accomplish this?
i know this might be very simply to solve, but i just can;t figure it
out. any help very appreciated.
many thanks.