Display/Hide part of a list
Posted
by superexsl
on Stack Overflow
See other posts from Stack Overflow
or by superexsl
Published on 2010-05-12T01:58:26Z
Indexed on
2010/05/12
2:04 UTC
Read the original article
Hit count: 246
Hi
I have an (unordered)list (generated by a repeater) of items. However, I'd like to show the first three items, and have the rest hidden by the main content
div. When a button is pressed, I would like the list's div to expand, pushing the main content
div down and showing the rest of the list. I was thinking of using slideDown(), but that closes the entire div ( and I would like to show the first 3 items of the list). What would be the best way to achieve an effect like this? Is there a plugin that can easily show X items of a list and the display the rest upon request?
Thanks
© Stack Overflow or respective owner