Good afternoon,
I'm trying to use a jQuery functionality through a code I found on the internet. But it's not working! Can you help me fix it?
When I click on 'See More', you should scroll the page to the 'I Want to Become a Party' div.
Look:
BUTTON / LINK:
<a href="#QueroFazerParte" target="_self" class="button white is-gloss scrollTo" style="border-radius:99px;">
<span>VEJA MAIS</span>
</a>
JQUERY:
<script type="text/javascript">
jQuery(function ($) {
$(".scrollTo").on('click', function(e) {
e.preventDefault();
var target = $(this).attr('href');
$('html, body').animate({
scrollTop: ($(target).offset().top)
}, 2000);
});
});
</script>
SCROLL TO:
<div class="row row-collapse row-full-width QueroFazerParte" id="row-11071">