jQuery need content append to another html tag , my code is not working
<li>
<div class="content">
<div class="overview">this is text</div>
<p></p>
</div>
</li>
$('li').each(function(){
var des = $('.content .overview',this).text();
$ ('.content .overview',this)contents().appendTo($('.content p'));
console.log(des)
});
$(‘li’).each(function(){
});
you missed “.” .contents()