[jQuery] Re: Removing the html jQuery adds in effects

2008-07-03 Thread real
This is what you would want to do: $(#gallery li:first).before(litesting/ li).hide().slideDown(slow) On Jul 3, 11:51 am, pek [EMAIL PROTECTED] wrote: I have a small problem when dealing with effects. Warning: Noob question ahead. Currently I have a list of items ul id=gallery litest/li

[jQuery] Re: Removing the html jQuery adds in effects

2008-07-03 Thread pek
First of all, thank you very much for the reply. It is really hard to get any reply in this mailing list. This is the third time I'm asking something and you are the first to answer. Unfortunately, I've tried this and it kinda acts weird. Instead of wrapping the litesting/li with the effect, it

[jQuery] Re: Removing the html jQuery adds in effects

2008-07-03 Thread Carl Von Stetten
pek, Try this (untested): $(litesting/li).hide().insertBefore(#gallery li:first).slideDown(slow); Carl pek wrote: First of all, thank you very much for the reply. It is really hard to get any reply in this mailing list. This is the third time I'm asking something and you are the first to

[jQuery] Re: Removing the html jQuery adds in effects

2008-07-03 Thread pek
Thank you all for your replies. Carl, I tried yours but nothing happens when clicking previous. Anyway, thanks to a friend of mine, here is the correct code (or at least, the code that works) in case anybody wonders: $(.gallery).prepend(lipek/ li).children(li:first).hide().slideDown(slow);