Forum: Ruby on Rails Moving an element from one div to another using RJS?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3d197df430dbfd0d0b11f23b0a8d3ec9?d=identicon&s=25 Daniel Smedegaard Buus (Guest)
on 2007-02-23 21:27
(Received via mailing list)
Hey :)

Can someone tell me how I would go about moving an element from one
div to another using RJS? Like this,

<div id="daddy">
  <div id="child">I'm a kid</div>
</div>

<div id="mommy">
</div>

- And then in RJS, I would want to do something to move the child from
the daddy div to the mommy div - preferably with lots of visual
effects ;)

Thanks in advance,
Daniel :)
This topic is locked and can not be replied to.