In prototype or normal-but-cross-browser-compatible Javascript, how do I move the contents of a div to the contents of another div?
Inside the div is a form with ids
To move the contents of here into there, this works, as long as here encloses everything you want to move, like a : $('there').insert($('here').descendants()[0]); descendants() returns an array, and insert takes content, so use the first element. 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
here
there
: $('there').insert($('here').descendants()[0]); descendants() returns an array, and insert takes content, so use the first element. 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
$('there').insert($('here').descendants()[0]);
descendants() returns an array, and insert takes content, so use the first element.