I've been trying to get a scroll to div id jquery code to work correctly.
This is my code:
$('#myButton').click(function() {
   $.scrollTo($('#myDiv'), 1000);
});
But it didn't work. It just snaps to the div. I also tried
$('#myButton').click(function(event) {
     event.preventDefault();
   $.scrollTo($('#myDiv'), 1000);
});
With no progress.