Goto the Div Position - JavaScript

<div id="design_start">
Your content here
<button onclick="goto_top_position();">Move to design area</button>

function goto_top_position()
            $('html, body').animate({
                scrollTop: $("#design_start").offset().top
            }, 1000);

This code will take the scroll to the div position with animation

Popular posts from this blog

What are EAR, JAR and WAR files in J2EE?

ATG Issue - ConcurrentUpdateException - on BCC Deployment

How the competition helps to reduce the price of TEA?