I have this element:
<p class="info" style="text-align: left;">Encuentra toda la info aquí</p>
And I want to move it to this div
;
<div id="informacion"></div>
I have tried the following ways:
$('.info').appendTo('#informacion');
$('p.info').appendTo('#informacion');
But always the same error comes out.
You get that error because that function you use is not defined because the jQuery library is missing, you must add it
So as you already have this nice appendTo function (this makes it append to the end of the element):
$(".info").appendTo("#information");
Alternatively, you can use the prependTo function (it makes it append to the beginning of the element in case you have more elements inside it):
$(".info").prependTo("#information");
Example: