You need to grab the contents of several div's with equal classes. For example:
<div class='conteudo'>
<li>Conteúdo 1</li>
</div>
<div class='conteudo'>
<li>Conteúdo 2</li>
</div>
<div class='conteudo'>
<li>Conteúdo 3</li>
</div>
I want to get everything I have inside the minhaDiv
classes and display in another div, so that it looks like this:
<div class='minhaDiv'>
<li>Conteudo 1</li>
<li>Conteudo 2</li>
<li>Conteudo 3</li>
</div>
I've done it with jquery .text()
and it actually works, but I need the <li>
tags to be "grabbed" too. How can I do this?