centree
centree

Reputation: 2439

Jquery Mobile $.mobile.silentScroll

How can I use jquery mobile's silent scroll to force a div to scroll to the bottom? I know how to do this with ScrollTop in jquery but that doesn't seem to be working in jquery mobile.

Thanks

Upvotes: 4

Views: 4454

Answers (1)

grigno
grigno

Reputation: 3198

With silent scroll method you can scroll the page, not an element.

   //scroll to Y 100px          
    $.mobile.silentScroll(100);

So, if you want to scroll the page relative to a DIV you should get the position of your div, something like:

   $.mobile.silentScroll($('DIV').offset().top);

Upvotes: 3

Related Questions