In this code snippet, div1
is placed in div2
when you click on it, but I wanted it to be done automatically when loading the page without having to click on it.
I've tried replacing the .click event with .load or .ready but it does not.
jQuery(function ($) {
$('#DIV1').click(function () {
$('#DIV2').append(this);
});
});