I have a div container with list in it, only one item of this list is visible at once and the rest is being hidden (the container has overflow: hidden).
I want jQuery to show the requested items after clicking exact links:
Any ideas? Will scrollTo help me? I've tried this plug but no luck. I'd rather not use an iframe.
ScrollTo would help, but is scrolling absolutely required? I think it's even better to just use
slideUp()
andslideDown()
I modified the HTML just a bit to give the slide items a class and an id.
Live Demo: http://jsfiddle.net/ztFWv/1/
JS
UPDATE
If you must have scrolling :)
Here is a sample: http://jsfiddle.net/ztFWv/3/
Include the scrollTo JS file and use the command this way.