When I click on the image (class = 'scrollTo'), I want the page to scroll down to the next div (second-container). I've tried searching for a solution but nothing seems to work. Whenever I click, the page just refreshes. Any help would be greatly appreciated.
<div class='layer_two'>
<a class="scrollTo" href=""><img src='https://cdn3.iconfinder.com/data/icons/trico-arrows-1/24/TriangleDown-512.png' />
</div>
<div class='second-container'>
<div class='special'>
<h2>Turn ordinary into extraordinary</h2>
<div class='border'>
</div>
jquery
$(".scrollTo").click(function() {
$('html,body').animate({
scrollTop: $(".second-container").offset().top},
'slow');
});