[jQuery] Re: problem in removing and moving

2009-01-30 Thread Jack Finger
Anybody knows?

[jQuery] Re: problem in removing and moving

2008-12-21 Thread Jack Finger
Thanks to Dave Methvin, it runs. I didn't try Kean's solution, Dave's was simpler. And I have one more question: HTML: ...something... ...something... ... ... ... ... JS: if(previous dl is first dl){ ...} else { ... } - how can I write the condition? (e.g. I have this condition in sec

[jQuery] Re: problem in removing and moving

2008-12-21 Thread Jack Finger
Thanks to Dave Methvin, it runs. I didn't try Kean's solution, because David's was simpler, but thanks too. And I have one more question: ...something... ...something... ... ... ... JS: if(previous dl == first dl) - how can I check if previous of 'this dl' is the first 'dl', e.g. I ha

[jQuery] problem in removing and moving

2008-12-20 Thread Jack Finger
Hi, I want to remove an object, but also move a piece of it into previous HTML element, does exist something like ':prev' selector? Thanks! My code: JS: $('#to_move').insertAfter('#div > dl:previous(?) > dd'); $('#div > dl:last').remove(); HTML: ...something... ...something... TO MOVE