move to div jquery code example
Example 1: smooth scroll jquery onclick
$("#button").click(function() {
$('html, body').animate({
scrollTop: $("#myDiv").offset().top
}, 2000);
});
Example 2: jquery move element
$("#source").appendTo("#destination");
Example 3: how to move div using jquery
$('#destination').append( $('#source') );