However, it seems to have broken the following code:
$('html, body').animate({scrollTop: $('#voteHeader').offset().top}, 2500);
The code above should scroll down the page to the div with an id of “voteHeader”. However, once I implemented the native scrolling solution you mentioned above, it stopped working.
I have tried multiple things, but nothing seems to be working. Here are some of the things I’ve attempted:
$('#container').animate({scrollTop: $('#voteHeader').offset().top}, 2500);
$('html, body, #container').animate({scrollTop: $('#voteHeader').offset().top}, 2500);
$('.scrollable').animate({scrollTop: $('#voteHeader').offset().top}, 2500);
$(".scrollable").animate({ scrollTop: $("#voteHeader").scrollTop() }, 2500);
Any thoughts on what I can do to be able to scroll down the page using javascript?
I’m using jQuery 1.8.2, jQuery Mobile 1.2.0, and Phonegap 2.2.0 (via Build).
Thank you! -Mark
]]>