7

Possible Duplicate:
Is it possible to clone html element objects in JavaScript / JQuery?

For example, I want this:

<div id="foo1">

</div>
<div id="foo2">
  <div>Foo Here</div>
</div>

To become this:

<div id="foo1">
  <div>Foo Here</div>
</div>
<div id="foo2">
  <div>Foo Here</div>
</div>

Is this possible with jQuery?

Community
  • 1
  • 1
Lucas
  • 16,930
  • 31
  • 110
  • 182

0 Answers0