I've got the following problem:
I've got a button:
<div id="meerinfotoestel">
<a id="scroll-to-meerinfo" href="#meerinfo">
Meerinfo
</a>
</div>
And I've got some tabs setup with the following name:
.woocommerce-tabs
Now I want the screen to scroll to the tabs, onclick.
I've got the following script:
<script>
$(document).ready(function () {
$('#scroll-to-meerinfo').click(function(event){
event.preventDefault();
scrollToElement('.woocommerce-tabs');
});
</script>
Apparently the only thing that this does is put an anchor after the url.
Can anyone help me fix this?